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

Apply visible focus design guidelines in all components #1437

Merged
merged 97 commits into from Dec 30, 2022

Conversation

MewenLeHo
Copy link
Contributor

@MewenLeHo MewenLeHo commented Aug 2, 2022

Fixes #398.
Fixes #659.
Fixes #1035.
Fixes #1189.
Fixes #1189.

Commit that could be removed: 449d2c9 (here to reduce bundle size ~.05KB once packed, but may reduce comprehension ?)

@MewenLeHo MewenLeHo self-assigned this Aug 2, 2022
@MewenLeHo MewenLeHo marked this pull request as draft August 2, 2022 12:32
@netlify
Copy link

netlify bot commented Aug 2, 2022

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 2859c70
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/63aecf6d7ff0450009d53786
😎 Deploy Preview https://deploy-preview-1437--boosted.netlify.app/docs/5.2/migration
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@louismaximepiton

This comment was marked as outdated.

@louismaximepiton

This comment was marked as outdated.

@louismaximepiton

This comment was marked as outdated.

@louismaximepiton louismaximepiton force-pushed the main-mlh-apply-new-visible-focus-all-components branch 2 times, most recently from 2641c61 to 5e5b7d3 Compare August 30, 2022 14:45
@louismaximepiton

This comment was marked as outdated.

Copy link
Member

@louismaximepiton louismaximepiton left a comment

Choose a reason for hiding this comment

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

We should move to :focus-visible and drop the focus-visible dependency. Implies to check that it's well implemented in all forms + check that we don't have any reference to it in scss files.

Should be rebased on main with new focus rule from Bootstrap!

Should we introduce Sass variable for each component redefining their own focus style ? any thoughts on this particular question @julien-deramond ?

On other files:

  • Should refactor in search.scss
  • Should refactor in reboot.scss the [type="search"] (Someone with Mac @isabellechanclou)
  • In button-group.scss, l.137 is useful ?
  • Do we need rules on offset and focus inside anchor.scss
  • In buttons.scss, check if we could revert chore/merge-main@2504b89 #1513 (comment) once rebased -> Wait&see what Bs will do since our version seems to be easier and works well. 💡 Maybe change Bs management of .btn-chekck + .btn
  • In variables.scss:
    • $input-btn-focus-width should take $outline-offset value
    • $input-btn-focus-box-shadow should be almost the same as $btn-focus-box-shadow -> Fine as-is as we don't want input to have a focus-box.
  • In colored-links.scss, we should remove :focus rule
  • In mixin/list-group should remove :focus
  • Is there anything to change on .visually-hidden ?
  • In all files, see if we can remove easily the :not(focus) rules (in button-group) -> May be handled in Fixes for dropdown #1164 and other PRs
  • Check every focus rules inside assets/scss/**.scss (boosted, clipboard, navbar)
  • [OUT OF PR] Check assets/boosted.scss to see if the rules with id are still correct.
  • [OUT OF PR] Checks&radios should have a different id.
  • [OUT OF PR] Carousel indicators are broken if we hover for too long

scss/_variables.scss Show resolved Hide resolved
scss/_variables.scss Show resolved Hide resolved
scss/_variables.scss Show resolved Hide resolved
scss/_variables.scss Outdated Show resolved Hide resolved
scss/forms/_form-range.scss Outdated Show resolved Hide resolved
scss/forms/_form-check.scss Outdated Show resolved Hide resolved
scss/forms/_form-check.scss Show resolved Hide resolved
scss/forms/_form-check.scss Outdated Show resolved Hide resolved
scss/forms/_form-check.scss Outdated Show resolved Hide resolved
scss/_carousel.scss Show resolved Hide resolved
@louismaximepiton

This comment was marked as outdated.

@MewenLeHo MewenLeHo force-pushed the main-mlh-apply-new-visible-focus-all-components branch from 0f27f2e to a5c30bb Compare September 13, 2022 08:22
Copy link
Member

@louismaximepiton louismaximepiton left a comment

Choose a reason for hiding this comment

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

Package-lock.json shouldn't be commited maybe related to ff9ed90

scss/_variables.scss Outdated Show resolved Hide resolved
site/assets/scss/_anchor.scss Outdated Show resolved Hide resolved
scss/_variables.scss Outdated Show resolved Hide resolved
scss/_variables.scss Outdated Show resolved Hide resolved
scss/_variables.scss Outdated Show resolved Hide resolved
scss/_variables.scss Outdated Show resolved Hide resolved
scss/_variables.scss Outdated Show resolved Hide resolved
@MewenLeHo MewenLeHo force-pushed the main-mlh-apply-new-visible-focus-all-components branch from 94db821 to fcff75c Compare September 14, 2022 13:41
@MewenLeHo MewenLeHo force-pushed the main-mlh-apply-new-visible-focus-all-components branch from 09a5970 to a055e1b Compare September 15, 2022 09:25
Copy link
Member

@louismaximepiton louismaximepiton left a comment

Choose a reason for hiding this comment

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

As we said: should we add a focus-box on button-group only (and not on every button) ?

We may handle the deploy preview, any thoughts @julien-deramond ? Sorry for the ping, Seems to be still imported in generate-sri file.
We need to clean-up the doc to be sure that there isn't any more a reference to this dependency.

scss/_buttons.scss Outdated Show resolved Hide resolved
scss/_reboot.scss Show resolved Hide resolved
@isabellechanclou

This comment was marked as outdated.

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

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

Sounds good to go into v5.2.3. GG 🚀
We'll make the design review/a11y review asynchronally after exceptionnally because we really need to release v5.2.3. Part of it was already reviewed but let's do it in more details.

@sonarcloud
Copy link

sonarcloud bot commented Dec 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@julien-deramond julien-deramond merged commit 2001a10 into main Dec 30, 2022
@julien-deramond julien-deramond deleted the main-mlh-apply-new-visible-focus-all-components branch December 30, 2022 12:02
@MewenLeHo MewenLeHo mentioned this pull request Jul 27, 2023
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants