Similar to #3115429: Create theme settings for mobile menu, we need a theme setting. This one will be to change the appearance of the site-branding block.
This issue is to create the theme setting, and then apply a CSS class to the site-branding block. This issue does not cover the styling.
The theme setting should be a select list labeled "header site branding background color", with three options: blue background (the default), gray background, and white background.
The CSS class can be the following:
site-branding--bg-blue
site-branding--bg-gray
site-branding--bg-white

Comments
Comment #2
kostyashupenkoComment #3
kostyashupenkoComment #4
kostyashupenkoReady for review
Comment #5
Ujval Shah commented@kostyashupenko
Comment #6
mherchelPerfect! Committed. Thanks @kostyashupenko, and thanks for the review, @Ujval Shah!
Comment #7
duneblThis is my first message for this project, thus I would like firstly to thank you for this so beautiful theme... this is a very nice job!!!
I have 3 comments:
1-This patch will not store the setting in the UI if the theme is a subtheme of olivero.
At several place there is:
theme_get_setting('mobile_menu_all_widths', 'olivero')and it should be
2-Maybe this is working as designed, but the class
site-branding--bg-bluedoesn't exists3-I would suggest to use
bg-blue, bg-white etcas class names to allow an easy re-use in other places (and maybe creating some other possibilities of background like bootstrap does)Comment #8
kostyashupenko@DuneBL thanks for your review
1. https://git.drupalcode.org/project/drupal/-/blob/9.1.x/core/includes/the...
so i just removed
'olivero'as a second param2. Modifier
site-branding--bg-blueis useless in our case, since site-branding has blue bg and white text by default. So now classsite-branding--bg-bluewill never be added.3. We don't prepare css-utilities, we build components.
bg-grayandbg-white- are just modifiers of thesite-brandingcomponent. So i can't agree with youComment #9
dunebl@kostyashupenko #8 looks good to me... and many thanks for the explanations
Comment #10
mherchelNot yet committed. Moving back to RTBC (reviewed and tested by the community)
Comment #11
kostyashupenkoReroll
Comment #12
mherchelLooks good. Committed!