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

Local navigation: Add component #1468

Merged
merged 37 commits into from
Aug 30, 2023
Merged

Conversation

louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Aug 19, 2022

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

Related issues

Closes #890.

Description

Add a component: Local navigation.

Motivation & Context

Missing to Boosted compared to the design specs.

Types of change

  • New feature (non-breaking which fixes add 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 Aug 19, 2022

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 8db5bee
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/64eef59ce0f3680008042705
😎 Deploy Preview https://deploy-preview-1468--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
Copy link
Member Author

Adding what was said in design spec meeting::

  • The local navigation should behaves like a collapse.

@louismaximepiton louismaximepiton marked this pull request as ready for review December 23, 2022 14:56
@hannahiss hannahiss self-requested a review January 6, 2023 10:03
Copy link
Member

@hannahiss hannahiss left a comment

Choose a reason for hiding this comment

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

  • some minor comments about elements' labels
  • missing migration guide
  • a11y issue? The active item's color is orange, with a font size of 16px bold, which is in contradiction with our own recommendations (should be at least 19px bold, see https://a11y-guidelines.orange.com/fr/web/tester/#test-couleurs-et-contrastes)... It's even more serious in the reduced version, where the active item is only indicated by the color (no thick line below item). I'm avare that this presentation comes from another component (navbar nav-link) but shouldn't we try to find a better solution ? (probably not in this PR)

site/content/docs/5.2/components/local-navigation.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/local-navigation.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/local-navigation.md Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Jan 13, 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

@hannahiss
Copy link
Member

hannahiss commented Jan 16, 2023

  • a11y issue? The active item's color is orange, with a font size of 16px bold, which is in contradiction with our own recommendations (should be at least 19px bold, see https://a11y-guidelines.orange.com/fr/web/tester/#test-couleurs-et-contrastes)... It's even more serious in the reduced version, where the active item is only indicated by the color (no thick line below item). I'm avare that this presentation comes from another component (navbar nav-link) but shouldn't we try to find a better solution ? (probably not in this PR)

Created a design task about this

Copy link
Member

@hannahiss hannahiss left a comment

Choose a reason for hiding this comment

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

Ok except for active state accessibility that should be viewed on accessibility review

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.

Haven't checked everything but there's at least this issue regarding the mobile rendering:
Screenshot 2023-08-28 at 09 21 29

Missing left padding/margin

@louismaximepiton
Copy link
Member Author

louismaximepiton commented Aug 28, 2023

It's due to the doc, it renders well if you move the local navigation outside the example. Try to put it right after the header for example. For design review, there was some more code in a commit. Try reverting this locally: ded5ba8.

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.

Here's the first batch of comments. I haven't reviewed the CSS part in detail yet.

I'm wondering if we shouldn't integrate a disabled link in the examples like it's done in https://deploy-preview-1468--boosted.netlify.app/docs/5.3/components/navs-tabs/#underline just for easier maintenance.

In https://deploy-preview-1468--boosted.netlify.app/docs/5.3/components/navs-tabs/#underline, maybe it worth mentioning that if the user needs this nav to wrap, local navigation must be used.

site/content/docs/5.3/components/local-navigation.md Outdated Show resolved Hide resolved
site/content/docs/5.3/components/local-navigation.md Outdated Show resolved Hide resolved
scss/_local-navigation.scss Outdated Show resolved Hide resolved
scss/_local-navigation.scss Outdated Show resolved Hide resolved
scss/_local-navigation.scss Outdated Show resolved Hide resolved
scss/_local-navigation.scss Outdated Show resolved Hide resolved
scss/_local-navigation.scss Outdated Show resolved Hide resolved
site/content/docs/5.3/migration.md Outdated Show resolved Hide resolved
julien-deramond

This comment was marked as off-topic.

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.

Waiting for the confirmation about the disabled link color, and let's merge! Good job!

@julien-deramond julien-deramond merged commit 1b2f939 into main Aug 30, 2023
17 checks passed
@julien-deramond julien-deramond deleted the main-lmp-local-navigation branch August 30, 2023 08:19
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.

Local Headers > Local Navigation
5 participants