Problem/Motivation
Umami styles are leaking to the Settings Tray edit button.

Proposed resolution
It would probably bebetter if this fixed in toolbar module / stable.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 2956949-13.patch | 503 bytes | robindh |
| #7 | interdiff_5-7.txt | 1001 bytes | volkerk |
| #7 | 2956949-7.patch | 918 bytes | volkerk |
| #5 | toolbar-font-family-2956949-5.patch | 548 bytes | mic79 |
| Screen Shot 2018-03-29 at 16.20.09.png | 22.26 KB | lauriii |
Comments
Comment #2
lauriiiComment #3
volkerk commentedUmami changes font-family for buttons.
Do we want to make buttons styles more specific or alternatively add an override for the toolbar button.
Comment #4
mic79 commentedLooking into this right now at DrupalCon (Out of the box table).
Comment #5
mic79 commentedAdded CSS to make the toolbar inherit the font-family so it doesn't use the Umami font.
Comment #6
mic79 commentedComment #7
volkerk commentedFix in toolbar module / stable theme.
Comment #8
lauriiiThank you for picking up this issue!
Is there a specific reason we are setting styles for html elements by their type or, other properties than classes? That kind of selectors are generally too global and could affect styles in many other ways than what we are seeing in this bug report. A more robust solution for fixing this issue would be to remove all instances of setting styles for pure html elements or properties. To scope this issue, let's start with buttons in this issue.
Comment #9
volkerk commentedI don't know, the font-family issue here stems from a very specific implementation for the button element in base.css:
As far as I can see the only button (actually "input.button") utilizing these styles in demo_umami is the submit of the search-block-form.
Unfortunately there are no comments in that file and git commit points to #2809635: Create experimental installation profile.
Comment #11
eli-tFollowing discussion with @lauriii, we should remove all targets except .button from the selector hightlighted in #9, then regression test the Umami demo to make sure we are adding that class in all required cases.
Comment #12
gvert commentedRobindh and I are working on this at DrupalEurope.
Comment #13
robindh commentedI've removed all selectors but ".button" from the css rule described in #9.
Comment #14
robindh commentedComment #15
gvert commentedI've tested the patch in #13, and everything looks good.
The "edit" button has the correct font-family now, and all the other buttons in the umami the still have the correct styling!
Comment #16
markconroy commentedThis looks good to me. Marking as RTBC.
Comment #18
lauriiiCommitted c66f665 and pushed to 8.7.x. Also cherry-picked to 8.6.x. Thanks! 🚀. See you at #2940585: Enable Settings Tray on Umami Demo now it has been marked stable in core!