Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define dropdown menu background in foundation-dropdown-menu mixin #11377

Merged
merged 1 commit into from
Jul 4, 2018
Merged

Define dropdown menu background in foundation-dropdown-menu mixin #11377

merged 1 commit into from
Jul 4, 2018

Conversation

rlhawk
Copy link
Contributor

@rlhawk rlhawk commented Jul 3, 2018

Description

The $dropdownmenu-background variable is used to set the background of a top-level dropdown menu items.

Motivation and Context

This change allows the background to be set for top-level dropdown menu items using a Foundation setting variable that is currently defined, but not used.

Types of changes

  • Documentation
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing
    functionality to change)

Checklist (all required):

  • I have read and follow the CONTRIBUTING document.
  • There are no other pull request similar to this one.
  • The pull request title is descriptive.
  • The template is fully and correctly filled.
  • The pull request targets the right branch (develop or support/*).
  • My commits are correctly titled and contain all relevant information.
  • My code follows the code style of this project.
  • I have updated the documentation accordingly to my changes (if relevant).
  • I have added tests to cover my changes (if relevant).
  • All new and existing tests passed.

Copy link
Contributor

@ncoden ncoden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @rlhawk 💯

For reference:

  • $dropdownmenu-background was added in 658ed64 to set the submenu backgrounds
  • $dropdownmenu-submenu-background was added in 902a485 but not used.
  • $dropdownmenu-submenu-background was used for the submenu backgrounds instead of $dropdownmenu-background in eb6b0fb, and $dropdownmenu-background was not used anymore.

@ncoden ncoden added this to the 6.5.0 milestone Jul 3, 2018
@ncoden ncoden merged commit 0ec2be1 into foundation:develop Jul 4, 2018
ncoden added a commit that referenced this pull request Jul 4, 2018
Define dropdown menu background in foundation-dropdown-menu mixin
ncoden pushed a commit to ncoden/foundation-sites that referenced this pull request Jul 6, 2018
0ec2be1 Define dropdown menu background in foundation-dropdown-menu mixin

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
ncoden pushed a commit to ncoden/foundation-sites that referenced this pull request Jul 8, 2018
0ec2be1 Define dropdown menu background in foundation-dropdown-menu mixin

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
@ncoden ncoden mentioned this pull request Jul 8, 2018
10 tasks
ncoden added a commit to ncoden/foundation-sites that referenced this pull request Aug 2, 2018
Changes:
- Only apply top-level styles to top-level items. This increase specificity but this markup structure is alreaddy assumed elsewhere in the component.
- Remove the default `$white` background on top-level items: it was never applied before foundation#11377 and could now cause visual changes.

Closes foundation#11412
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$dropdownmenu-background is not used
3 participants