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

docs: move accessibility checklist for designers to menu #1198

Merged
merged 4 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Remember - test for accessibility early in the design process.

## Useful Resources

- What is Universal Design? (DNB Sharepoint) https://dnbasa.sharepoint.com/sites/n1317
- (Norwegian) Gjeldende regelverk og krav https://www.uutilsynet.no/regelverk/gjeldende-regelverk-og-krav/746
- [What is Universal Design? (DNB Sharepoint)](https://dnbasa.sharepoint.com/sites/n1317)
- [Gjeldende regelverk og krav (Uutilsynet)](https://www.uutilsynet.no/regelverk/gjeldende-regelverk-og-krav/746) (in norwegian)

## WCAG (Web Content and Accessibility Guide)

Expand Down Expand Up @@ -96,19 +96,6 @@ Semantic markup makes robust content that's accessible. Pay attention to the fol
Responsive Design ensures that content can be viewed on a wide spectrum of display sizes.
Responsive components and layout design should be planned from the beginning and not applied as an afterthought. Build prototypes early in code or design and begin testing their breakpoints sooner rather than later.

### Accessibility checklist for designers

**NB:** Move this section to its own menu item pages

Building an accessible interface starts at the UX stage of design. Ideally, a designer should be able to convey to a developer how they would like a keyboard user to use and navigate through an interface. Much of the DNB Design System's styling and development have considered accessibility to a certain extent, see [Accessibility](/uilib/usage/accessibility). However, each interface design comes with its own challenges and requirement

- make sure the content is perceivable - ensure good contrast between background and foreground
- plan how you would like a keyboard navigator to access interface laments/areas. What will the order of tabbing be?
- should you provide a ’skip to content’ feature to allow users to get to the main content quickly
- plan how the interface will respond to different screen sizes. The layout may have to change - how will this affect accessibility?
- zoom the interface - some users zoom their browser to increase the size. How will elements behave in these scenarios? Will they overlap? What happens to wide horizontal components such as navigation or tab sets?
- fluid design as opposed to using fixed breakpoints, allows the content to reflow in the same order as screen readers render content to users who are blind or visually impaired.

## Focus management

### Where should the focus start on the first page init?
Expand Down Expand Up @@ -137,3 +124,7 @@ Or, it can be based on user needs. For example, it may be more beneficial for a

Again, this is dependent on both content, context, and user needs which ultimately affect the user experience. If there are blocks of repeating content on multiple pages then it may improve user experience to add a Skip-Link.
It is not a requirement to have a Skip-Link but an asset.

## Accessibility checklist for designers

Check out the [Accessibility checklist for designers](/quickguide-designer/accessibility/checklist) for the most important features in accessibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: 'Checklist for designers'
---

## Accessibility checklist for designers

Building an accessible interface starts at the UX stage of design. Much of the DNB Design System's styling and development have taken accessibility into consideration to a certain extent (see [UI Library Accessibility](/uilib/usage/accessibility)). However, each interface design comes with its own challenges and requirement.

- [ ] **Content is perceivable**: Ensure good contrast between background and foreground.
- [ ] **Accessible for keyboard users**: Plan how you would like a keyboard navigator to access interface laments/areas. What will the order of tabbing be?
- [ ] **Skip to content**: Should you provide a ’skip to content’ feature to allow users to get to the main content quickly?
- [ ] **Responsive page**: Plan how the interface will respond to different screen sizes. The layout may have to change - how will this affect accessibility?
- [ ] **Zoom the interface**: Some users zoom their browser to increase the size. How will elements behave in these scenarios? Will they overlap? What happens to wide horizontal components such as navigation or tab sets?
- [ ] **Fluid design**: As opposed to using fixed breakpoints, fluid design allows the content to reflow in the same order as screen readers render content to users who are blind or visually impaired.
2 changes: 1 addition & 1 deletion packages/dnb-eufemia/src/components/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Library Index avatar to autogenerate all the components and extensions
* Used by "prepareAvatar"
* Used by "prepareAvatars"
Copy link
Contributor

@langz langz Jan 14, 2022

Choose a reason for hiding this comment

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

Thanks 🙇

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was automatically added on build 👼 😁

*/

import Avatar from './avatar/Avatar'
Expand Down