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

[EuiProgress] Fix broken transition CSS #7538

Merged
merged 5 commits into from
Feb 21, 2024
Merged

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Feb 20, 2024

Summary

closes #7523

I missed a template literal while converting the component from Sass to Emotion (#5986) 🤦 Also I never noticed this because I work primarily in Firefox and apparently progress animations have never worked in Firefox 😭

QA

In a webkit browser:

  • On production, and click Toggle Progress - it should not animate smoothly (compared to pre-Emotion conversion)
  • Go to staging and click Toggle Progress
  • Confirm the progress bar smoothly animates/transitions
  • Open your System settings and check the Reduce motion option under Accessibility
  • Refresh/re-click the button and confirm progress no longer smoothly animates

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
      - [ ] Checked in mobile
  • Docs site QA - N/A
  • Code quality checklist - N/A, CSS only change
  • Release checklist
    • A changelog entry exists and is marked appropriately.
  • Designer checklist - N/A

@cee-chen cee-chen changed the title [EuiProgress] Fix broken animation [EuiProgress] Fix broken transition CSS Feb 20, 2024
@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

@cee-chen cee-chen marked this pull request as ready for review February 20, 2024 21:03
@cee-chen cee-chen requested a review from a team as a code owner February 20, 2024 21:03
'transition: width ${euiTheme.animation.normal} linear;'
)}
${euiCanAnimate} {
/* Note: FF/Mozilla doesn't actually support animating the native progress bar
Copy link
Member

Choose a reason for hiding this comment

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

🤯

Copy link
Member

@tkajtoch tkajtoch left a comment

Choose a reason for hiding this comment

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

Thanks for fixing it! The changes look great 🎉

@cee-chen
Copy link
Member Author

Thanks Tomasz!

@cee-chen cee-chen merged commit c2dbd57 into elastic:main Feb 21, 2024
8 checks passed
@cee-chen cee-chen deleted the progress/fix branch February 21, 2024 16:56
cee-chen added a commit to elastic/kibana that referenced this pull request Mar 12, 2024
`v93.2.0`⏩`v93.3.0`

---

## [`v93.3.0`](https://github.com/elastic/eui/releases/v93.3.0)

- Added new `EuiDataGrid` new prop: `cellContext`, an optional object of
additional props passed to the cell render function.
([#7374](elastic/eui#7374))
- `EuiBreadcrumbs`'s `popoverContent` API now accepts a render function
that will be passed a `closePopover` callback, allowing consumers to
close the breadcrumb popover from their popover content
([#7555](elastic/eui#7555))

**Bug fixes**

- Fixed missing animation on native `EuiProgress` bar update
([#7538](elastic/eui#7538))
- Fixed an `EuiDataGrid` bug with `gridStyle.rowClasses`, where custom
consumer classes that began with `euiDataGridRow` would not be correctly
removed/reapplied ([#7549](elastic/eui#7549))
- Fixed a visual `EuiDataGrid` bug where `EuiCheckbox`es within control
columns were not vertically centered within single height rows
([#7549](elastic/eui#7549))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EuiProgress] Missing animation on progress bar update - regression
4 participants