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

refactor(disable-animation): migrate disable-animation mechanism #2507

Merged
merged 34 commits into from
Apr 23, 2024

Conversation

TomMenga
Copy link
Contributor

@TomMenga TomMenga commented Mar 19, 2024

Closes #2272

For reviewers

See src/components/core/styles/mixins/a11y.scss and src/components/core/styles/typography.scss for the actual implementation of the new mechanism.
All the other changes are adaptations to the new disable-animation system.


Commit message

BEGIN_COMMIT_OVERRIDE
refactor(disable-animation): migrate disable-animation mechanism (#2507)

BREAKING CHANGE: Add the sbb-disable-animation CSS class to disable animations for the element and all its children. Consequently, all disable-animation properties of the following components have been removed.

  • Removed disable-animation property from sbb-accordion
  • Removed disable-animation property from sbb-alert
  • Removed disable-animation property from sbb-autocomplete
  • Removed disable-animation property from sbb-datepicker-toggle
  • Removed disable-animation property from sbb-dialog
  • Removed disable-animation property from sbb-expansion-panel
  • Removed disable-animation property from sbb-image
  • Removed disable-animation property from sbb-loading-indicator
  • Removed disable-animation property from sbb-menu
  • Removed disable-animation property from sbb-navigation
  • Removed disable-animation property from sbb-navigation-section
  • Removed disable-animation property from sbb-notification
  • Removed disable-animation property from sbb-overlay
  • Removed disable-animation property from sbb-popover
  • Removed disable-animation property from sbb-select
  • Removed disable-animation property from sbb-selection-panel
  • Removed disable-animation property from sbb-sticky-bar
  • Removed disable-animation property from sbb-toast
  • Removed disable-animation property from sbb-toggle

feat(alert): add animation property (#2507)
BREAKING-CHANGE: Removed disable-animation property. Use animation='none' instead.

feat(notification): add animation property (#2507)
BREAKING-CHANGE: Removed disable-animation property. Use animation='none' instead or depending on the case 'open' or 'close'.
END_COMMIT_OVERRIDE

@github-actions github-actions bot temporarily deployed to preview-pr2507 March 19, 2024 17:03 Inactive
@TomMenga TomMenga linked an issue Mar 20, 2024 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 93.22%. Comparing base (e6397df) to head (884f611).
Report is 11 commits behind head on main.

Files Patch % Lines
src/components/notification/notification.ts 50.00% 3 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2507      +/-   ##
==========================================
+ Coverage   93.18%   93.22%   +0.03%     
==========================================
  Files         316      316              
  Lines       25389    25308      -81     
  Branches     2063     2064       +1     
==========================================
- Hits        23660    23593      -67     
+ Misses       1696     1682      -14     
  Partials       33       33              

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

@TomMenga TomMenga self-assigned this Mar 20, 2024
@github-actions github-actions bot temporarily deployed to preview-pr2507 March 20, 2024 08:39 Inactive
@github-actions github-actions bot temporarily deployed to preview-pr2507 March 20, 2024 09:05 Inactive
@TomMenga TomMenga changed the title refactor(disable-animation): migrate disable-animation mechanism [WIP] refactor(disable-animation): migrate disable-animation mechanism Mar 20, 2024
@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Mar 20, 2024
@TomMenga TomMenga added the pr: lead review required A lead review is required for this pull request label Mar 20, 2024
@github-actions github-actions bot temporarily deployed to preview-pr2507 March 21, 2024 13:55 Inactive
@TomMenga TomMenga changed the title refactor(disable-animation): migrate disable-animation mechanism refactor(disable-animation): migrate disable-animation mechanism [WIP] Mar 27, 2024
@github-actions github-actions bot removed the pr: peer review required A peer review is required for this pull request label Mar 27, 2024
@TomMenga TomMenga changed the title refactor(disable-animation): migrate disable-animation mechanism [WIP] refactor(disable-animation): migrate disable-animation mechanism Mar 27, 2024
@TomMenga TomMenga added the pr: peer review required A peer review is required for this pull request label Mar 27, 2024
@TomMenga TomMenga force-pushed the refactor/disable-animation branch from c98de56 to 8b8ff1b Compare March 27, 2024 15:36
@github-actions github-actions bot temporarily deployed to preview-pr2507 April 18, 2024 12:33 Inactive
Copy link
Contributor

@jeripeierSBB jeripeierSBB left a comment

Choose a reason for hiding this comment

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

hopefully my (second) last review here :D

src/components/alert/alert/readme.md Outdated Show resolved Hide resolved
src/components/notification/readme.md Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to preview-pr2507 April 22, 2024 14:33 Inactive
Copy link
Contributor

@jeripeierSBB jeripeierSBB left a comment

Choose a reason for hiding this comment

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

Yeeaaah!

@github-actions github-actions bot temporarily deployed to preview-pr2507 April 23, 2024 05:47 Inactive
@jeripeierSBB jeripeierSBB added pr: lead review approved Pull request has been approved by a lead review and removed pr: peer review required A peer review is required for this pull request pr: lead review required A lead review is required for this pull request labels Apr 23, 2024
@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Apr 23, 2024
# Conflicts:
#	.storybook/preview.ts
#	src/components/accordion/accordion.stories.ts
#	src/components/container/sticky-bar/sticky-bar.stories.ts
#	src/components/dialog/dialog/dialog.stories.ts
#	src/components/expansion-panel/expansion-panel/expansion-panel.stories.ts
#	src/components/image/image.scss
#	src/components/loading-indicator/loading-indicator.stories.ts
#	src/storybook/pages/home/home--logged-in.stories.ts
Copy link
Contributor

@jeripeierSBB jeripeierSBB left a comment

Choose a reason for hiding this comment

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

LGTM 2 :)

@jeripeierSBB jeripeierSBB removed the pr: peer review required A peer review is required for this pull request label Apr 23, 2024
@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Apr 23, 2024
@jeripeierSBB jeripeierSBB merged commit 8b91eb8 into main Apr 23, 2024
30 checks passed
@jeripeierSBB jeripeierSBB deleted the refactor/disable-animation branch April 23, 2024 09:22
@github-actions github-actions bot added pr: peer review required A peer review is required for this pull request and removed pr: peer review required A peer review is required for this pull request labels Apr 23, 2024
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 required A peer review is required for this pull request preview-available
Projects
None yet
Development

Successfully merging this pull request may close these issues.

story: investigate disable-animation alternative
4 participants