Navigation Submenu: Fix color handling and inheritance #68351
+58
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What, Why & How?
Testing Instructions for Keyboard
Screencasts
The following are the expected outcomes that the submenu block should abide by.
If the
navigation block
has either abackground
or atext
color assigned, and there's no color provided for thesubmenu & overlay text
orsubmenu & overlay background
, thennavigation
blocks color should be inherited. ( ✅ )If the
navigation block
has specified a color, but, thesubmenu parent
has also specified a color (background and text ), the submenu container should still inherit the color from thenavigation block
. ( ✅ )If
submenu & overlay text
orsubmenu & overlay background
values are provided, these should overwrite the values ofnavigation block
. ( ✅ )if only
submenu's
color and background value are passed, then it shouldn't override the value of thesubmenu container
.Container's
values must be either inherited fromnavigation
or from the dedicatedsubmenu
control options onnavigation
. ( ✅ )Closes: #68350