Skip to content

Commit

Permalink
fix(list): use transparent marker for accessibility
Browse files Browse the repository at this point in the history
Fixes VPAT-612
  • Loading branch information
Ashley Ryan authored and ashleyryan committed Oct 6, 2022
1 parent 713f763 commit 211baca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions projects/core/src/list/list.scss
Expand Up @@ -26,9 +26,11 @@ $list-default-unordered-type: disc;
%kill-list-styles {
padding-inline-start: 0 !important;
margin: 0 !important;
// zero-width blank space added to help VoiceOver screen reader read a list-style-type none list
list-style: '\200B' !important;
list-style-position: inside !important;

// VoiceOver can't read a list-style-type none list, so use a transparent marker instead
li::marker {
color: transparent;
}
}

[cds-list] {
Expand Down

0 comments on commit 211baca

Please sign in to comment.