-
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
424 default link style #427
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
That's a good point, @JBCSU |
Ok, I think I've fixed all the cascades. Can someone with a keener eye for fonts than I double check, please? @yvonnetangsu |
Font weight looks good, @JBCSU , but what happens to the underline? I thought we're adding underline to the default link style but I could be wrong 🤔 . Also, I believe the links in alerts have underlines to begin with. |
One more thing, the :focus state of the default link needs to be changed to black color also (should match the :hover state when keyboard user tab to it). And the animation - those apply to the :focus as well. |
The new default link style does have underline. I therefore removed the specification from links inline in alert text and allow those links to inherit the default style, as I believe those links should actually get the default inline link style (i.e. if a developer overrides the default inline styles). |
Animation is not part of the default inline link style, which is this PR. If we need to address animation, I propose we do it in #341. |
Great - yeah, turns out I had to rebuild the styleguide. Looks good to me. |
Interesting....I didn't realize the current live site doesn't have focus styles for the links. I must be thinking about the homesite (the jump links have animation when you tab to them). We could merge this in, and I can deal with the focus state in the animation branch later? |
One probably final thing, JB - the "Decanter" logo now has underline and the font weight is different. Could you please remove the underline and change it to font-weight: 700? |
move all alert colors into the $alert-colors map; change button-big to use button-primary and just make overrides
I did go ahead and |
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
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 suggest we change the .su-alert--warning link color to $color-dark-red or $color-cardinal-red, and hover link color to $color-black. The blue is more similar in value (brightness) to the yellow background compared to red. So changing this to red would increase the contrast.
GTG for me! The Decanter logo hover color - I can live with either. |
update doc for alert color map in styleguide
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.
Looks great - thanks for updating the color map and adding the focus states! 👍
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.
Thanks for all your attention on this detailed item. GTG.
Great, thanks @yvonnetangsu & @sherakama. Merging now. |
READY FOR REVIEW
Summary
Update the default styling for links. See #424.
Needed By (Date)
Other link work in Decanterpalooza will build on this, so sooner is better than later.
Urgency
Other link work in Decanterpalooza will build on this
Steps to Test
Note that most of the diffs in this PR are because it's based on the
386-nav-color-map
branch. I've changed the following filesscss/components/alert/_alert.scss
scss/utilities/functions/color.scss
scss/utilities/mixins/button/_button-secondary.scss
scss/utilities/mixins/link/_link.scss
scss/utilities/placeholders/components/_cta.scss
scss/utilities/variables/core/_core-color-maps.scss
templates/components/link/link.json
kss/builder/decanter/scss/_base_elements.scss
Affected Projects or Products
Associated Issues and/or People
See Also