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

[Innspill til komponent]: <Radio /> #2013

Closed
macbruker opened this issue May 31, 2023 · 2 comments · Fixed by #2388
Closed

[Innspill til komponent]: <Radio /> #2013

macbruker opened this issue May 31, 2023 · 2 comments · Fixed by #2388
Assignees

Comments

@macbruker
Copy link
Contributor

Tilbakemelding

Det ser ut som gråfargen på radioknapper ikke blir mørkere om de legges på grå bakgrunn. Jeg tror dette skyldes at fargen alltid ligger på hvit bakgrunn (box-shadow med inset). 🤔

@KenAJoh
Copy link
Collaborator

KenAJoh commented May 31, 2023

Tror dette kan være en 'ok' fiks for dette:

    box-shadow: 0 0 0 2px var(--ac-radio-checkbox-border,var(--a-border-default));
    height: calc(1.5rem - 2px);
    width: calc(1.5rem - 2px);
    margin: 2px;

beholder da hvit bakgrunn som standard, men border blir mørkere.
Tror vi ønsker å beholde hvit bakgrunn som standard, men ikke 100% på om det

@macbruker
Copy link
Contributor Author

Ja, det var noe sånt jeg testet i devtools. Prøvde å sikre riktig oppførsel ved :hover og :focus også, men det ble klønete å hacke i nettleseren.

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

Successfully merging a pull request may close this issue.

3 participants