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

Alerts: Change warning icon #2240

Merged
merged 6 commits into from
Sep 19, 2023
Merged

Alerts: Change warning icon #2240

merged 6 commits into from
Sep 19, 2023

Conversation

louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Sep 13, 2023

Note: Please transform - [ ] into - (NA) in the description when things are not applicable

Related issues

Close one item of #1761.

Description

Change the $warning-icon that is only used for .alert-warning

Motivation & Context

Be conform to UI kit v5.

Types of change

  • Refactoring (non-breaking change)

Live previews

Checklist

Contribution

Accessibility

  • My change follows accessibility good practices; I have at least run axe

Design

  • My change respects the design guidelines defined in Orange Design System
  • My change is compatible with a responsive display

Development

  • My change follows the developer guide
  • I have added JavaScript unit tests to cover my changes
  • I have added SCSS unit tests to cover my changes

Documentation

  • My change introduces changes to the documentation and/or I have updated the documentation accordingly

Checklist (for Core Team only)

  • (NA) My change introduces changes to the migration guide
  • My new component is well displayed in Storybook
  • My new component is compatible with RTL
  • Manually run BrowserStack tests
  • Manually test browser compatibility with BrowserStack (Chrome >= 60, Firefox >= 60 (+ ESR), Edge, Safari >= 12, iOS Safari, Chrome & Firefox on Android)
  • Code review
  • Design review
  • A11y review

After the merge

@netlify
Copy link

netlify bot commented Sep 13, 2023

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 7507bee
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/6509439f3eb83800081d3bd6
😎 Deploy Preview https://deploy-preview-2240--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.

@louismaximepiton louismaximepiton marked this pull request as ready for review September 14, 2023 09:39
@julien-deramond
Copy link
Member

julien-deramond commented Sep 14, 2023

Haven't checked the code yet but something indirectly linked: https://deploy-preview-2240--boosted.netlify.app/docs/5.3/extend/icons/#sprite is using the previous icon, maybe we need to change it to use the new one OR find another icon example. It could mean removing <symbol fill="currentColor" viewBox="0 0 24 24" id="warning">...</symbol> from our icons sprite.

@julien-deramond

This comment was marked as resolved.

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.

Tested with combinations of old browsers/OSs and everything seems to be rendered correctly.

TBH I'm not a huge fan of the "warning": ("icon": escape-svg($warning-icon)), syntax but it's lighter compared to a clean one where for each $alert-icons we would have to define this icon value and then another one to true for instance. So let's go with it.

IMO https://deploy-preview-2240--boosted.netlify.app/docs/5.3/utilities/colors/#oranges-colors and https://deploy-preview-2240--boosted.netlify.app/docs/5.3/extend/icons/ can work temporarily if this code would happen to be released without #2075.

Just two minor comments to tackle and we're good to go.

site/content/docs/5.3/migration.md Outdated Show resolved Hide resolved
scss/_variables.scss Outdated Show resolved Hide resolved
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.

LGTM

@julien-deramond julien-deramond merged commit 0e9c628 into main Sep 19, 2023
15 checks passed
@julien-deramond julien-deramond deleted the main-lmp-alert-warning branch September 19, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants