-
Notifications
You must be signed in to change notification settings - Fork 9
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
Set up color maps for Decanter and refactor main nav colors to refer to color maps #420
Conversation
…d alerts to use color map and function; start refactoring main nav colors
…ound color is now white; beginning color map refactoring
…t .su-main-nav--dark
@sherakama @JBCSU I've removed the nesting in the color maps and changed the function @color to get rid of the $theme parameter. Also, I've changed all reference to $color-dark-red to $color-bright-red per @kerri-augenstein 's suggestion (#422). Could you please give it another look? Thanks! |
…e top of each variant's scss file
background-color: $color-white; | ||
} | ||
.su-main-nav--dark { | ||
$_color-map: $main-nav-dark-colors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just in case this variable name is used somewhere else, can you prefix it with the component name.
eg: $main-nav-color-map
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @sherakama's request to rename the $main-nav*-colors
variables as $su=main-nav*-colors
. Otherwise, I think we're GTG. I'll approve now so your not blocked from merging while I'm away.
* master: Move PR template (#416)
@sherakama - this one ready for a final look also. I'm a bit puzzled about why the custom error message isn't showing up if I tried putting a non-existent color for the color function 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTG. Thanks for this.
Not sure why CC is complaining about the line length. I'm pretty sure we have that set to 120. |
Yeah, CC's been weird lately. It complains about the braces not on their own lines but they are :\ |
* master: (44 commits) Set up color maps for Decanter and refactor main nav colors to refer to color maps (#420) Move PR template (#416) Fix skiplink target so it doesn't take up space and cause overflow (#415) Release 5.0.1 (#417) Fix CSS grid gaps not displaying on Edge issue and other minor grid related issues (#413) More link fixup (#388) forgot to rebuild .js after final lint fixes (#387) add openNav, closeNav, openSubnav, closeSubnav events (#379) Fix main nav color variants and work with new linting rules (#380) add favicon to style guide (#377) Adjust linters. (#370) update readme.md to match Scott's intro on homepage.md (#371) Update README.md (#369) move the images we need for the styleguide's homepage into kss-assets (#368) Update README.md (#367) Update UPGRADE.md (#363) package.locl.json file is back (#366) Added more to changelog (#364) Update homepage.md (#362) 90 basic webpack (#334) ... # Conflicts: # core/scss/components/index.scss
Merge branch 'master' into 424-inline-link-style * master: Set up color maps for Decanter and refactor main nav colors to refer to color maps (#420) # Conflicts: - all resolved using "mine" # core/dist/css/decanter.css # core/src/scss/components/global-footer/_global-footer.scss # core/src/scss/utilities/functions/_color.scss # core/src/scss/utilities/mixins/button/_button-big.scss # core/src/scss/utilities/mixins/button/_button-primary.scss # core/src/scss/utilities/mixins/button/_button-secondary.scss # core/src/scss/utilities/mixins/link/_link.scss # core/src/scss/utilities/variables/core/_core-color-maps.scss
READY FOR REVIEW
Summary
$core-colors
and one for main-nav$main-nav-colors
. There is already an existing one called$alert-colors
.color
to get colors from color maps.Needed By (Date)
Urgency
Steps to Test
color
.Affected Projects or Products
Associated Issues and/or People