Giter VIP home page Giter VIP logo

Comments (6)

epilande avatar epilande commented on June 30, 2024

An anchor with an empty href (href=""), will apply :visited styles.

from grommet-docs.

karatechops avatar karatechops commented on June 30, 2024

This appears to be an issue with the color defaults within the HPE Grommet theme. All themes but HPE set the $link-color variable to a color value while the HPE theme sets the $link-color value to inherit. This setting will inherit the HTML base color value of #333.

Updating the $brand-link-color value in the HPE theme to $brand-color will resolve this issue however this will change the default Anchor styling of all HPE themed grommet applications.

from grommet-docs.

bryanjacquot avatar bryanjacquot commented on June 30, 2024

@karatechops the intended behavior is to change the font color in the HPE theme to $brand-color. The only concern is if this would change the standard anchors (non-primary) as those are only 16px font. The HPE green does not meet WCAG 2.0 AA rating on a white background unless the font is at least 19px. I wonder if that's the reason this was done differently in the first place.

from grommet-docs.

karatechops avatar karatechops commented on June 30, 2024

@bryanjacquot changing the link color to $brand-color would adjust all the links. A potential workaround is to use SCSS to target the primary Anchors and set their color to $brand-color, the primary Anchors default to 19px while base Anchor styling is 16px. With this solution the non primary Anchor tags would remain #333. I can submit a PR if this sounds like a fix.

from grommet-docs.

bryanjacquot avatar bryanjacquot commented on June 30, 2024

@karatechops yep, that sounds like the right direction. Thanks!

from grommet-docs.

karatechops avatar karatechops commented on June 30, 2024

Proposed fix in grommet PR #879

from grommet-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.