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

Chore merge from d8883d7 to 8e5dada #2162

Merged
merged 72 commits into from
Jul 26, 2023

Conversation

julien-deramond
Copy link
Contributor

@julien-deramond julien-deramond commented Jul 24, 2023

@netlify
Copy link

netlify bot commented Jul 24, 2023

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 7fa7882
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/64be77b63350a900088dbc72
😎 Deploy Preview https://deploy-preview-2162--boosted.netlify.app
📱 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 configuration.

@netlify
Copy link

netlify bot commented Jul 24, 2023

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit cac57bd
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/64c0cc17158c6e000711cd05
😎 Deploy Preview https://deploy-preview-2162--boosted.netlify.app/docs/5.3/components/navs-tabs
📱 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 configuration.

@julien-deramond julien-deramond changed the title Chore merge from d8883d7 Chore merge from d8883d7 to 8e5dada Jul 25, 2023
@julien-deramond julien-deramond marked this pull request as ready for review July 25, 2023 11:12
@julien-deramond
Copy link
Contributor Author

julien-deramond commented Jul 25, 2023

@louismaximepiton I let you review this PR and in the meantime, I'll fix pa11y errors (see https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/actions/runs/5656026746/job/15322504889?pr=2162):

Scrollable region must have keyboard access

It comes from the regeneration of package-lock.json which bumped the axe-core sub-dependency used by pa11y; now 4.7.2 instead of 4.5.2. So I suppose that we have new rules to take care of.

Note: the errors come from the 4.7.0 version where:

scrollable-region-focusable: change impact to serious (dequelabs/axe-core#3959) (e3a5c21)
scrollable-region-focusable: skip native controls (dequelabs/axe-core#3862) (b0bdefa)

Full errors

Errors in http://localhost:9001/docs/5.3/utilities/overflow/:

 • Scrollable region must have keyboard access
   (https://dequeuniversity.com/rules/axe/4.7/scrollable-region-focusable?application=axeAPI)

   (html > body > div:nth-child(6) > main > div:nth-child(3) > div:nth-child(7)
   > div:nth-child(1))

   <div class="overflow-x-auto p-3 mb-3 mb-md-0 me-md-3 w-100 border"
   style="max-width: 200px; max-height: 100px; white-space: nowrap;">
   <div><code>.overflow-x-aut...</div>

 • Scrollable region must have keyboard access
   (https://dequeuniversity.com/rules/axe/4.7/scrollable-region-focusable?application=axeAPI)

   (html > body > div:nth-child(6) > main > div:nth-child(3) > div:nth-child(7)
   > div:nth-child(4))

   <div class="overflow-x-scroll p-3 bg-white w-100 border" style="max-width:
   200px; max-height: 100px;white-space: nowrap;">
   <div><code>.overflow-x-scr...</div>

 • Scrollable region must have keyboard access
   (https://dequeuniversity.com/rules/axe/4.7/scrollable-region-focusable?application=axeAPI)

   (html > body > div:nth-child(6) > main > div:nth-child(3) >
   div:nth-child(11) > div:nth-child(1))

   <div class="overflow-y-auto p-3 mb-3 mb-md-0 me-md-3 w-100 border"
   style="max-width: 200px; max-height: 100px;">
   <code>.overflow-y-auto</co...</div>

 • Scrollable region must have keyboard access
   (https://dequeuniversity.com/rules/axe/4.7/scrollable-region-focusable?application=axeAPI)

   (html > body > div:nth-child(6) > main > div:nth-child(3) >
   div:nth-child(11) > div:nth-child(4))

   <div class="overflow-y-scroll p-3 w-100 border" style="max-width: 200px;
   max-height: 100px;"> <code>.overflow-y-scroll</...</div>

Errors in http://localhost:9001/docs/5.3/content/tables/:

 • Scrollable region must have keyboard access
   (https://dequeuniversity.com/rules/axe/4.7/scrollable-region-focusable?application=axeAPI)

   (html > body > div:nth-child(6) > main > div:nth-child(3) >
   div:nth-child(86) > div)

   <div class="table-responsive"> <table class="table"> ...</div>

Errors in http://localhost:9001/docs/5.3/content/typography/:

 • Scrollable region must have keyboard access
   (https://dequeuniversity.com/rules/axe/4.7/scrollable-region-focusable?application=axeAPI)

   (html > body > div:nth-child(6) > main > div:nth-child(3) > div:nth-child(7))

   <div class="table-responsive"><table class="table"> <thead> <...</div>

✘ 128/131 URLs passed
ERROR: "docs-pa11y" exited with 2.
Error: Process completed with exit code 1.

To understand the error, please go to https://codepen.io/julien-deramond/pen/bGQxKej with Chrome and you'll see that without tabindex="0" the area isn't focusable with the keyboard. So the idea to fix it is to add this tabindex="0" where needed as explained by https://dequeuniversity.com/rules/axe/4.7/scrollable-region-focusable?application=axeAPI.

How to fix these issues

In order not to block this PR for a long time, I chose to:

The idea would be to merge this PR, create an issue for the overflow part in Boosted, and add a comment in #1711. Those 2 waiting for a feedback upstream before making a decision; if the fix is accepted upstream it'll come back naturally in Boosted, otherwise we'll Boosted mod the fixes.

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 maybe add something in the migration guide about the aria-disabled thing ?

Should we change the appearance attribute for QS too ? twbs/bootstrap@1ab75c8 I don't know how to test it properly. But changing its place doesn't seem to bring new errors so I'm a bit lost on this.

Few things to tackle before merging.

site/data/docs-versions.yml Outdated Show resolved Hide resolved
scss/_nav.scss Outdated Show resolved Hide resolved
site/content/docs/5.3/components/list-group.md Outdated Show resolved Hide resolved
site/content/docs/5.3/components/navs-tabs.md Show resolved Hide resolved
<button type="button" class="btn btn-secondary">Button</button>
<button type="button" class="btn btn-secondary">Button</button>
<div class="btn-group" role="group">
<div class="btn-group dropstart" role="group">
Copy link
Member

Choose a reason for hiding this comment

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

[Bootstrap Side] The markup isn't the one shown in the doc for the dropstart.

scss/_variables.scss Outdated Show resolved Hide resolved
@julien-deramond julien-deramond force-pushed the main-jd-chore-merge-from-d8883d7 branch from eda06c3 to 2307b60 Compare July 26, 2023 05:45
@julien-deramond
Copy link
Contributor Author

julien-deramond commented Jul 26, 2023

Should we change the appearance attribute for QS too ? twbs/bootstrap@1ab75c8 I don't know how to test it properly. But changing its place doesn't seem to bring new errors so I'm a bit lost on this.

Upstream this change has been made to prevent an issue. Between the commits and the deps updates, there was a moment where the issues were actually there; and I had to do this commit 53652a4. There was no error with the quantity selector so I think we're good. It's reproducible anymore since the deps have changed again in the recent commits.

FYI you only had to run npm run docs for instance to see the errors.

@julien-deramond

This comment was marked as resolved.

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.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore merge Sync with Bootstrap
Projects
Development

Successfully merging this pull request may close these issues.

2 participants