Skip to content

Commit

Permalink
[MWPW-154662] [Accessibility] Visual list is not marked up as list: s…
Browse files Browse the repository at this point in the history
…ection (#3101)

* make mini-compare footer rows unordered list for accessiblity

* dummy commit

* Revert "dummy commit"

This reverts commit a3a8824.

---------

Co-authored-by: Rohit Sahu <rosahu@adobe.com>
  • Loading branch information
rohitsahu and Rohit Sahu authored Nov 7, 2024
1 parent 36e869f commit fe3acdb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/merch-card/merch-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ const decorateFooterRows = (merchCard, footerRows) => {
const rowIcon = row.firstElementChild.querySelector('picture');
const rowText = row.querySelector('div > div:nth-child(2)').innerHTML;
const rowTextParagraph = createTag('div', { class: 'footer-row-cell-description' }, rowText);
const footerRowCell = createTag('div', { class: 'footer-row-cell' });
const footerRowCell = createTag('ul', { class: 'footer-row-cell' });
if (rowIcon) {
rowIcon.classList.add('footer-row-icon');
footerRowCell.appendChild(rowIcon);
Expand Down
1 change: 1 addition & 0 deletions libs/deps/mas/mas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libs/deps/mas/merch-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ merch-card[variant="ccd-action"] .price-strikethrough {
justify-content: start;
place-items: center;
padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s);
margin-block: 0px;
}
merch-card[variant="mini-compare-chart"] .footer-row-cell-description {
Expand Down
1 change: 1 addition & 0 deletions libs/features/mas/mas/dist/mas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const CSS = `
justify-content: start;
place-items: center;
padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s);
margin-block: 0px;
}
merch-card[variant="mini-compare-chart"] .footer-row-cell-description {
Expand Down

0 comments on commit fe3acdb

Please sign in to comment.