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

Breadcrumb: Add the mobile version #2003

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Apr 20, 2023

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

Related issues

Closes #891.
Linked to #537.

Description

Add a small version of the breadcrumb.
Accepted by a11y with ux doubts, but fine from a11y pov.

Rebrand a bit the Breadcrumb so it has no underline.
From design point of view, it was asked:

We only use underline for breadcrumbs on rollover. Will this be a problem to change?

Motivation & Context

The brand and help people to have breadcrumb in their sites.

Types of change

  • New feature (non-breaking change which adds functionality)

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 responsive display

Development

  • My change follows the developer guide
  • (NA) I have added JavaScript unit tests to cover my changes
  • (NA) 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)

  • My change introduces changes to the migration guide
  • My new component is added 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 Apr 20, 2023

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 2707be8
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/65967d5d4838f60008051c97
😎 Deploy Preview https://deploy-preview-2003--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 April 24, 2023 08:40
@MewenLeHo MewenLeHo self-requested a review April 24, 2023 11:58
Copy link
Contributor

@MewenLeHo MewenLeHo left a comment

Choose a reason for hiding this comment

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

Small comments about the migration guide.

@sonarcloud
Copy link

sonarcloud bot commented Apr 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@MewenLeHo MewenLeHo left a comment

Choose a reason for hiding this comment

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

Looks good and migration guide is ok.

@sonarcloud
Copy link

sonarcloud bot commented Jul 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Franco-Riccitelli
Copy link

All looks good me. Thanks

@julien-deramond
Copy link
Member

@louismaximepiton I haven't checked this PR yet but we need to check if #520 (comment) can be useful here or not at all. I mean, is a link with chevron usable here, or would it be a completely separate component?

@louismaximepiton
Copy link
Member Author

We probably can use a kind of link with chevron but it means changing the markup to get some utilities (.d-none.d-md-block or something like that). Not quite sure it's better in migration and usability terms.

@julien-deramond
Copy link
Member

We probably can use a kind of link with chevron but it means changing the markup to get some utilities (.d-none.d-md-block or something like that). Not quite sure it's better in migration and usability terms.

Got the same feeling so let's keep this separate issue to maybe provide this kind of links if they can be used outside the context of breadcrumbs.

@julien-deramond
Copy link
Member

There's something we need to clarify in this PR in one of our weekly sessions, the links are no longer underlined contrary to our main branch.
This is compliant with the DSM but was what's inside the DSM validated with the a11y team...?
Based on that, it should be mentioned in the description of this PR or modified in the DSM.

@Aniort
Copy link
Contributor

Aniort commented Aug 4, 2023

ok, good to me !

padding-left: var(--#{$prefix}breadcrumb-item-padding-x) #{"/* rtl:ignore */"};
color: var(--#{$prefix}breadcrumb-divider-color);
content: var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
transform: scaleX(-1) #{"/* rtl:"} scaleX(1) #{"*/"};
Copy link
Member

Choose a reason for hiding this comment

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

Instead of transforming it automatically, I'm wondering if we shouldn't provide a $breadcrumb-divider-mobile (not sure about the naming). Because if you choose "/" as a divider, in mobile mode you probably don't want it to be "".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Need Lead Dev Review
Development

Successfully merging this pull request may close these issues.

Local Headers > Breadcrumb
5 participants