Originally submitted on Github
Problem/Motivation
Recent interviews and research exposed pain points around Drupal's admin experience of looking and feeling dated, especially compared to our competitors, and universally cited that choosing a more modern-looking admin theme instantly led to Drupal being better-perceived by said users.
There was an amazing community effort to Create a Style Guide For Seven that vastly improved its look + feel compared to the original, but Design best practices and Drupal functionality have moved on since then.
Proposed resolution
Implement new autocomplete field styles to create a favorable first impression of Drupal for evaluators and a better user experience for site authors. No functional differences.
Specs:
https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/Design-system?node-i...
General specs:
Remaining tasks
- Update patch styling to include time inputs
- Accessibility review
- RTL review (Right to left)
User interface changes
All autocomplete field styles will be changed, no functional differences.
Test Pages
/node/add/article (tags)
| Comment | File | Size | Author |
|---|---|---|---|
| #58 | interdiff-3023317-54-58.txt | 330 bytes | huzooka |
| #58 | claro-autocomplete-3023317-58.patch | 23.35 KB | huzooka |
| #54 | interdiff-3023317-50-54.txt | 3.54 KB | huzooka |
| #54 | claro-autocomplete-3023317-54.patch | 31.09 KB | huzooka |
| #50 | interdiff-3023317-47-50.txt | 2.74 KB | huzooka |
Comments
Comment #2
antonellasevero commentedComment #3
saschaeggiComment #4
saschaeggiComment #5
huzookaIMHO this is not a parent-child relationship, this is a duplication. The Figma link is the same, only the test component differs.
Comment #6
huzookaComment #7
huzookaAttaching Seven screenshots as a reference.
Comment #8
huzookaScreenshots here.
Comment #10
huzookaReally minor fix.
Comment #12
huzookaComment #13
huzookaNeeds re-roll because #3027004: Fix variables declarations is merged.
Comment #14
huzookaComment #15
huzookaComment #17
huzookaComment #18
huzookaComment #19
huzookaComment #21
huzookaComment #22
lauriiiHow about passing this as a new variable instead of passing it inside the attributes given that it's removed in the template?
Maybe this could be just
claro-auto-complete-with-message?This element is missing the block level element. However, we probably can change the wrapper into block level element and this could be
claro-auto-complete-with-message__message.Comment #23
huzookaComment #24
huzookaRe #22:
claro-autocomplete?claro-auto-complete-with-messageseems to be too long for meComment #26
huzookaComment #27
Kami Amiga commentedThis value doesn't seem to be in the list of the font-sizes values in the Figma doc. Where is it from ?
.0625 = --size-input-border
.125 = --size-input-border-radius
Comment #28
huzookaComment #29
huzookaAddressing #27.
Comment #31
huzookaComment #32
lauriiiShould we use the magnifier.svg for this instead?
Should we use the spinner.svg for this instead?
Where's the source file for this? 🤔
Comment #33
huzookaFixing #32.3
Comment #34
huzookaAdded missing es6 source for the autocomplete enhancer js.
Re #32:
urlproperties of non-used CSS selectors aren't downloaded by popular browsers.Comment #36
huzookaComment #37
lauriiiThanks for the input on my feedback @huzooka! I think both of your arguments are reasonable, and I think it would be valuable to have these documented in the CSS itself so that this information doesn't get lost.
Comment #38
huzookaComment #39
huzookaComment #41
huzookaComment #42
lauriiiWondering if we care but this doesn't work on IE 11 because of the lack of support for SVG CSS transitions 😢
Comment #43
huzookaRe #42 I know, I've seen it. Neither the progress bar background is animated in IE11, that's why I thought that this is an acceptable 'fallback'.
Comment #44
huzooka...Nor SVG's animate is supported in IE11.
Comment #45
huzookaI just noticed that the magnifier icon and the animation should be flipped for the RTL version (I did it in throbber style update #3025917: Throbber Style Update).
Comment #46
huzookaComment #47
huzookaChanged:
Comment #48
lauriiiCould we place this right after the ltr selector?
Comment #49
huzookaOf course!
Comment #50
huzookaComment #52
huzookaComment #53
huzookaWe'll add the fallback spinner-GIFs with white background in order to make their edges smooth.
Comment #54
huzookaComment #56
huzookaComment #57
huzookaWe agreed that we'll provide a 1dppx version GIF fallback for ie11.
Comment #58
huzookaComment #60
huzookaComment #63
lauriiiThank you! 🙏