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

Issue-3256: Prevent focus outline from being overridden. #3259

Merged
merged 1 commit into from Dec 12, 2019

Conversation

mejiaj
Copy link
Contributor

@mejiaj mejiaj commented Dec 11, 2019

Description

Fixes #3256

Additional information

https://user-images.githubusercontent.com/11464021/70549602-557bb080-1b29-11ea-8b7a-86d8e76a4f3c.gif

Focus styles in _buttons.scss were being overriden by the specificity of :not in src/stylesheets/global/_focus.scss:5.

Before you hit Submit, make sure you’ve done whichever of these applies to you:

  • Follow the 18F Front End Coding Style Guide and Accessibility Guide.
  • Run npm test and make sure the tests for the files you have changed have passed.
  • Run your code through HTML_CodeSniffer and make sure it’s error free.
  • Title your pull request using this format: [Website] - [UI component]: Brief statement describing what this pull request solves.

@thisisdano thisisdano added this to Review in USWDS Sprint Board Dec 12, 2019
@thisisdano thisisdano modified the milestones: December 2019 Monthly Call, Release 2.4.0 Dec 12, 2019
Copy link
Member

@thisisdano thisisdano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I love a simple PR.

@thisisdano thisisdano merged commit ebf0adc into develop Dec 12, 2019
USWDS Sprint Board automation moved this from Review to Done Dec 12, 2019
@thisisdano thisisdano mentioned this pull request Dec 18, 2019
&:focus,
&.usa-focus {
&:not([disabled]):focus,
&:not([disabled]).usa-focus {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why repeat when you can...

&:not([disabled]) {
  &:focus,
  &.usa-focus {
   ...
  }
}

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stylistic choice, seemed more readable to me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense. We can fold it into the next block of work.

@mejiaj mejiaj deleted the feature/USWDS-3256 branch January 6, 2020 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: Button Type: Bug A problem in the code
Projects
Development

Successfully merging this pull request may close these issues.

Focus offset is being overridden
3 participants