In Safari, "list-style: none" removes the list semantic role, so lists are
no longer announced by screen readers. Using "list-style-type: \"\"" keeps the
same visual result while preserving the list role.
Ports twbs/bootstrap#41778 to v6, plus the new v6 list containers (stepper,
menu, docs search results). Summary marker removals (accordion header,
details summary) are intentionally left as "list-style: none".
align-items: center;
padding: var(--breadcrumb-padding-y, 0) var(--breadcrumb-padding-x, 0);
font-size: var(--breadcrumb-font-size);
- list-style: none;
+ list-style-type: "";
background-color: var(--breadcrumb-bg);
@include border-radius(var(--breadcrumb-border-radius));
}
display: flex;
flex-direction: column;
- // No need to set list-style: none; since .list-group-item is block level
+ // No need to set list-style-type: ""; since .list-group-item is block level
padding-inline-start: 0; // reset padding because ul and ol
margin-bottom: 0;
@include border-radius(var(--list-group-border-radius));
font-size: var(--menu-font-size);
color: var(--menu-color);
text-align: start;
- list-style: none;
+ list-style-type: "";
background-color: var(--menu-bg);
background-clip: padding-box;
border: var(--menu-border-width, var(--border-width)) solid var(--menu-border-color, var(--border-color-translucent));
gap: var(--nav-gap);
padding-inline-start: 0;
margin-bottom: 0;
- list-style: none;
+ list-style-type: "";
}
.nav-item {
gap: var(--nav-gap);
padding-inline-start: 0;
margin-bottom: 0;
- list-style: none;
+ list-style-type: "";
.nav-link {
&.active,
grid-auto-flow: row;
gap: var(--stepper-gap);
padding-inline-start: 0;
- list-style: none;
+ list-style-type: "";
counter-reset: stepper;
}
// Unstyled keeps list items block level, just removes default browser padding and list-style
@mixin list-unstyled {
padding-inline-start: 0;
- list-style: none;
+ list-style-type: "";
}
gap: var(--spacer-2);
padding-block-start: var(--spacer-1);
- list-style: none;
+ list-style-type: "";
}
.bd-search-result {