-
Notifications
You must be signed in to change notification settings - Fork 54
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
ODS > Navigation > Carousel Navigation #1084
Comments
This comment was marked as outdated.
This comment was marked as outdated.
The 20% transparency is applied to the Default & Disabled States.
The carousel navigation is not displayed anymore under the Medium Screen size break point.
The base HTML element will be a
Check the current implementation to see if it is possible to have a visible focus (an outline) just around the button
|
Desired focus state for carousel prev and next button will not be easy to achieve because :
=> I made a CodePen with a preliminary test and I would like to have feedbacks on it: https://codepen.io/MewenLeHo/pen/MWrXNZg?editors=1100 @julien-deramond @louismaximepiton @isabellechanclou @Franco-Riccitelli |
I might be wrong, but I think you tried too much to put the focus state on the button and not its descendant. I tried some few things on this Codepen and I think it is much easier this way ! |
I just updated the demo CodePen: https://codepen.io/MewenLeHo/pen/MWrXNZg?editors=1100 |
FYI approved by the Design team. |
And approved by the a11y Team as well. |
Carousel Navigation
Requirement
For a developer
Who is creating an Orange website
The carousel navigation
is a component
that allows to manipulate a carousel
Boosted will provide this ready to use component compatible with Orange design specifications and a11y requirements
DSM reference
General description
Carousel navigation allows users to navigate forward and backwards through content in a carousel component.
UI specifications
Anatomy
Carousel navigation is composed of:
States
Carousel navigation has four possible states:
Appearance
Carousel navigation includes a black chevron which is set within a 50% white container to allow them to remain visible when placed over different colored backgrounds or imagery.
The 20% transparency is applied to the Default & Disabled States.
The carousel navigation is not displayed anymore under the Medium Screen size break point.
Placement
The carousel navigation is positioned to the left and right edges of the carousel and centered vertically. For more examples of the carousel navigation used in hero banners, see the promotions examples in modules.
UX specifications
Interaction
Animations
No animation for this component
Accessibility
A good practice on carousel accessibility
Visual Accessibility
The image won't be used by screen readers; a visually hidden text will be used to inform the purpose of the commands: "Previous" / "Next".
Question: How the visible focus will be displayed?
Usage Accessibility
N/A
Technical specifications
This component won't be considered as a component but rather as a part of the Carousel component. So it won't be provided on its own.
HTML Structure
The base HTML element will be a
<button>
.The icon will be displayed within
<span>
(that must be hidden for screen reader) with a:before
rule.The image must be embedded by Boosted.
JavaScript
No JavaScript directly for this component. JS will be handled by the Carousel component.
Documentation in Boosted
Since this component can only be used within a carousel, it won't exist on its own and will be packaged in the Carousel component.
No need to create a specific Example page.
Implementation tasks
The text was updated successfully, but these errors were encountered: