Skip to content

Commit

Permalink
fix(sbb-journey-summary): avoid list role for single entry lists (#2152)
Browse files Browse the repository at this point in the history
Co-authored-by: Osman Minaz <[email protected]>

(cherry picked from commit 1de5f61)
  • Loading branch information
WalkingOS authored and jeripeierSBB committed Nov 7, 2023
1 parent bcff6d4 commit 9a7e6da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/journey-summary/journey-summary.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('sbb-journey-summary', () => {
<span class="sbb-journey-summary__via-text">
Via
</span>
<ul class="sbb-journey-summary__vias">
<ul class="sbb-journey-summary__vias" role="presentation">
<li class="sbb-journey-summary__via">
via
</li>
Expand Down Expand Up @@ -152,7 +152,7 @@ describe('sbb-journey-summary', () => {
<span class="sbb-journey-summary__via-text">
Via
</span>
<ul class="sbb-journey-summary__vias">
<ul class="sbb-journey-summary__vias" role="presentation">
<li class="sbb-journey-summary__via">
via
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/components/journey-summary/journey-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class SbbJourneySummary extends LitElement {
return html`
<div class="sbb-journey-summary__via-block">
<span class="sbb-journey-summary__via-text">Via</span>
<ul class="sbb-journey-summary__vias">
<ul class="sbb-journey-summary__vias" role=${vias.length <= 1 ? 'presentation' : nothing}>
${slicedVias.map(
(via, index) =>
html`<li class="sbb-journey-summary__via">
Expand Down

0 comments on commit 9a7e6da

Please sign in to comment.