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

fix(sbb-popover): rename tooltip to popover and fix accessibility bugs #2368

Merged
merged 14 commits into from
Feb 8, 2024

Conversation

jeripeierSBB
Copy link
Contributor

@jeripeierSBB jeripeierSBB commented Jan 25, 2024

BREAKING CHANGE: Component sbb-tooltip has been renamed to sbb-popover.
Component sbb-tooltip-trigger has been renamed to sbb-popover-trigger
Attribute sbb-tooltip-close has been renamed to sbb-popover-close.
Every CSS tooltip variable has been renamed from --sbb-tooltip-* to --sbb-popover-* (including trigger).

Closes #2018

@github-actions github-actions bot requested a deployment to preview-pr2368 January 25, 2024 16:23 In progress
@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@960046c). Click here to learn what that means.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2368   +/-   ##
=======================================
  Coverage        ?   93.79%           
=======================================
  Files           ?      223           
  Lines           ?    22920           
  Branches        ?     2017           
=======================================
  Hits            ?    21498           
  Misses          ?     1384           
  Partials        ?       38           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot temporarily deployed to preview-pr2368 January 25, 2024 18:57 Inactive
@jeripeierSBB jeripeierSBB changed the title fix(sbb-tooltip): fix accessibility bugs fix(sbb-tooltip): fix accessibility bugs (WIP) Feb 5, 2024
@jeripeierSBB jeripeierSBB marked this pull request as draft February 5, 2024 15:20
@github-actions github-actions bot temporarily deployed to preview-pr2368 February 6, 2024 09:38 Inactive
@github-actions github-actions bot temporarily deployed to preview-pr2368 February 6, 2024 13:40 Inactive
@jeripeierSBB jeripeierSBB added the pr: ux review required A ux review is required for this pull request label Feb 6, 2024
@jeripeierSBB jeripeierSBB marked this pull request as ready for review February 6, 2024 14:07
@github-actions github-actions bot temporarily deployed to preview-pr2368 February 6, 2024 14:07 Inactive
@jeripeierSBB jeripeierSBB changed the title fix(sbb-tooltip): fix accessibility bugs (WIP) fix(sbb-popover): fix accessibility bugs (WIP) Feb 6, 2024
@github-actions github-actions bot temporarily deployed to preview-pr2368 February 6, 2024 14:17 Inactive
@jeripeierSBB jeripeierSBB added the pr: lead review required A lead review is required for this pull request label Feb 6, 2024
@jeripeierSBB jeripeierSBB changed the title fix(sbb-popover): fix accessibility bugs (WIP) fix(sbb-popover): fix accessibility bugs Feb 6, 2024
@jeripeierSBB jeripeierSBB added the pr: peer review required A peer review is required for this pull request label Feb 6, 2024
@jeripeierSBB jeripeierSBB changed the title fix(sbb-popover): fix accessibility bugs fix(sbb-popover): rename tooltip to popover and fix accessibility bugs Feb 6, 2024
@github-actions github-actions bot temporarily deployed to preview-pr2368 February 6, 2024 15:03 Inactive
Copy link
Contributor

@kyubisation kyubisation left a comment

Choose a reason for hiding this comment

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

LGTM 👍

src/components/popover/popover/popover.ts Outdated Show resolved Hide resolved
src/components/popover/popover/popover.ts Outdated Show resolved Hide resolved
@jeripeierSBB jeripeierSBB added pr: lead review approved Pull request has been approved by a lead review and removed pr: lead review required A lead review is required for this pull request labels Feb 6, 2024
@github-actions github-actions bot temporarily deployed to preview-pr2368 February 6, 2024 15:48 Inactive
Copy link
Contributor

@TomMenga TomMenga left a comment

Choose a reason for hiding this comment

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

Good job 😸
Just a little doubt about a change in getFocusableElements

src/components/core/a11y/focus.ts Show resolved Hide resolved
src/components/core/a11y/focus.ts Show resolved Hide resolved
@jeripeierSBB jeripeierSBB requested a review from TomMenga February 7, 2024 09:33
Copy link
Contributor

@TomMenga TomMenga left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@TomMenga TomMenga removed the pr: peer review required A peer review is required for this pull request label Feb 7, 2024
@TomMenga TomMenga added the pr: peer review approved Pull request has been approved by a peer review label Feb 7, 2024
@github-actions github-actions bot temporarily deployed to preview-pr2368 February 7, 2024 09:41 Inactive
@github-actions github-actions bot temporarily deployed to preview-pr2368 February 8, 2024 07:48 Inactive
@jeripeierSBB jeripeierSBB added pr: ux review approved Pull request has been approved by a ux review and removed pr: ux review required A ux review is required for this pull request labels Feb 8, 2024
BREAKING CHANGE: Component `sbb-tooltip` has been renamed to `sbb-popover`.
Component `sbb-tooltip-trigger` has been renamed to `sbb-popover-trigger`
Attribute `sbb-tooltip-close` has been renamed to `sbb-popover-close`.
Every CSS tooltip variable has been renamed from
`--sbb-tooltip-*` to `--sbb-popover-*` (including trigger)
@jeripeierSBB jeripeierSBB merged commit 70c1c07 into main Feb 8, 2024
15 checks passed
@jeripeierSBB jeripeierSBB deleted the tooltip-refactoring branch February 8, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: lead review approved Pull request has been approved by a lead review pr: peer review approved Pull request has been approved by a peer review pr: ux review approved Pull request has been approved by a ux review preview-available
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Tooltips are difficult to close with the keyboard
4 participants