Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Spawned from #3194350: Implement new form element designs for Olivero
Olivero's autocomplete input does not have disabled styling
Comment | File | Size | Author |
---|---|---|---|
#18 | before-patch.png | 23.3 KB | djsagar |
#18 | after-patch.png | 26.56 KB | djsagar |
#17 | 3200644-after_patch.png | 7.75 KB | Abhijith S |
#17 | 3200644-before_patch.png | 7.65 KB | Abhijith S |
#16 | after-patch.png | 31.44 KB | BhumikaVarshney |
Comments
Comment #2
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs commentedI have attached a patch and after patch screenshot for reference. Please review.
Comment #3
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs commentedComment #4
imalabya@Gauravmahlawat The issue is that the autocomplete fields don't have a style when they are disabled. Moving it to NW
Comment #5
imalabyaAdded a patch that applied the disabled styling for autocomplete field.
Comment #6
vikashsoni CreditAttribution: vikashsoni as a volunteer and at Zyxware Technologies commented@imalabya i am getting error when applying the patch if i am missing some tell me check screenshot
Comment #7
cindytwilliams CreditAttribution: cindytwilliams at Kanopi Studios commentedPatch #5 applied cleanly via Composer, and the disabled autocomplete input field now has disabled styling. Marking RTBC.
Before patch:
After patch:
Comment #8
kleiton_rodrigues CreditAttribution: kleiton_rodrigues at CI&T commentedI applied patch and the input field now has disabled styling css.
It's good for me.
RTBC +1.
Comment #9
vikashsoni CreditAttribution: vikashsoni as a volunteer and at Zyxware Technologies commentedApplied patch working fine sharing the screenshot...
Comment #10
mherchelThis looks great for normal left-to-right languages (such as english), but the styling does not work for RTL languages (such as arabic). These styles are controlled in the same file around line 32. We basically need to do the same thing there. We also should be adding the
/* LTR */
comment after each CSS line that is LTR specific like thebackground-position
property's line (see https://www.drupal.org/docs/develop/standards/css/css-formatting-guideli...).Comment #11
cindytwilliams CreditAttribution: cindytwilliams at Kanopi Studios commentedHere is a patch that applies the disabled styling for autocomplete fields for both RTL and LTR languages, with /* LTR */ comments added where needed.
Comment #12
cindytwilliams CreditAttribution: cindytwilliams at Kanopi Studios commentedI forgot to add the disabled color for RTL. Added that to this patch, along with the disabled styling for autocomplete fields for both RTL and LTR languages, and the /* LTR */ comments where needed.
Comment #13
mherchelThe
autocomplete-loading.module.pcss.css
looks perfect. The reason why the commands failed in the patch above is because the compiled CSS in the patch didn't match the compiled CSS that core output when runningyarn build:css
. You'll want to make sure your dependencies are up to date by runningyarn install
from the/core
directory.I'm including an updated patch an interdiff here. Setting to RTBC since the only thing we're changing is the generated files.
Comment #14
lauriiiI think it would be better to set this to
--color--white
like we do on form-text.pcss.css to ensure the text has sufficient contrastComment #15
mherchelDone!
Comment #16
BhumikaVarshney CreditAttribution: BhumikaVarshney as a volunteer and at OpenSense Labs commentedHi @mherchel,
The patch applies cleanly and also now the color is set to --color--white.
Thanks.
Comment #17
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied patch #15 and it works fine.Adding screenshots.
Before patch:
After patch:
RTBC +1
Comment #18
djsagar CreditAttribution: djsagar at OpenSense Labs commentedApplied patch #15 and working as accepted so moving this as on RTBC.
Adding attachment.
Comment #20
lauriiiCommitted 88d8300 and pushed to 9.2.x. Thanks!
Comment #21
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs for DrupalFit commented