Giter VIP home page Giter VIP logo

Comments (8)

dluetger avatar dluetger commented on August 22, 2024 1

So, I thiiiink the source of the error is somewhere in ...assets/css/_components/button.scss; where there is a missing :visited state that needs to be copied and pasted down, but could use another set of eyes to verify that
Screenshot 2024-02-06 at 4 33 31 PM

from 18f.gsa.gov.

juliaklindpaintner avatar juliaklindpaintner commented on August 22, 2024

Seems to be an issue with the "followed link" color.

from 18f.gsa.gov.

dluetger avatar dluetger commented on August 22, 2024

I can certainly look, but offhand to we know if this is a Design System issue or local only to this page? And if so, should we prioritize a quick-local fix first?

from 18f.gsa.gov.

dluetger avatar dluetger commented on August 22, 2024

.usa-section--dark a:visited { color: #dfe1e2; }

Thinking aloud as I investigate. The link is classed like it's on a dark background (it doesn't seem to know it's on a light button); so that's a thing. I'll look into how widespread that is or if it just needs an additional class

from 18f.gsa.gov.

dluetger avatar dluetger commented on August 22, 2024

It also isn't a button at all, at least in code, and this seems like one of those semantic edge cases

from 18f.gsa.gov.

dluetger avatar dluetger commented on August 22, 2024

Scratch that, it is a usa-button but is still getting the visiting link style applied like I said two comments up. I also replicated this in Safari

from 18f.gsa.gov.

dluetger avatar dluetger commented on August 22, 2024

Same issue also happens on the homepage in the "What 18F can do" and "Recent blog posts" sections, so I suspect any buttons on dark backgrounds would see this effect

from 18f.gsa.gov.

dluetger avatar dluetger commented on August 22, 2024

So for this site, it seems we implemented an 18F specific button class, an18f-button--accent, that has slightly different rules from usa-button. an18f-button--accent seems to be used exclusively for these dark background sections and has the light blue background color. It seems, though, for both button styles, the intent is for it to not change color at all once visited. There seems to be a cascade error for the 18F one though and it's getting USWDS' style of any visited link on a dark background instead of the intended, unchanged, color.

from 18f.gsa.gov.

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.