Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 677
Finish updating global focus styles#2050
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
a3c1cf2b2c66d0b31c108ad650258c7d020b6ebe9e0e1472e4abd0d38f626c7adbc27473737a00b1b19dd743fade23f4ef9a39e11File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@primer/react': patch | ||
| --- | ||
| Finishes updating components with the global focus styles defined in Primer CSS ([this PR](https://github.com/primer/css/pull/1744)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -3,6 +3,7 @@ import React, {ChangeEventHandler, InputHTMLAttributes, ReactElement, useContext | ||
| import sx, {SxProp} from './sx' | ||
| import {FormValidationStatus} from './utils/types/FormValidationStatus' | ||
| import {RadioGroupContext} from './RadioGroup' | ||
| import getGlobalFocusStyles from './_getGlobalFocusStyles' | ||
| export type RadioProps = { | ||
| /** | ||
| @@ -41,6 +42,7 @@ const StyledRadio = styled.input` | ||
| cursor: pointer; | ||
| ${props => props.disabled && `cursor: not-allowed;`} | ||
| ${getGlobalFocusStyles(0)}; | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is, but I'm matching what we have in Primer CSS. | ||
| ${sx} | ||
| ` | ||
Uh oh!
There was an error while loading. Please reload this page.

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.
The focus ring on pages has a subtle gray border that makes it look a little "fuzzy":

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.
This is another thing I was keeping from Primer CSS.