Skip to content

Commit

Permalink
fix tabindex
Browse files Browse the repository at this point in the history
  • Loading branch information
yesil committed Dec 19, 2024
1 parent 92ce654 commit d410d29
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/deps/mas/mas.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libs/deps/mas/merch-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libs/features/mas/dist/mas.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions libs/features/mas/src/hydrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function processDescription(fields, merchCard, descriptionConfig) {
function createSpectrumCssButton(cta, aemFragmentMapping, isOutline, variant) {
const CheckoutButton = customElements.get('checkout-button');
const spectrumCta = CheckoutButton.createCheckoutButton({}, cta.innerHTML);
spectrumCta.setAttribute('tabindex', 0);
for (const attr of cta.attributes) {
if (['class', 'is'].includes(attr.name)) continue;
spectrumCta.setAttribute(attr.name, attr.value);
Expand Down

0 comments on commit d410d29

Please sign in to comment.