Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG#AC-2481 Icon buttons with no accessible name. (pattern: Icon butt… #3988

Merged
merged 26 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5cad4f7
BUG#AC-2481 Icon buttons with no accessible name. (pattern: Icon butt…
RaghavendraTirumalasetti Oct 20, 2022
7eb1cfa
BUG#AC-2481 Icon buttons with no accessible name. (pattern: Icon butt…
RaghavendraTirumalasetti Oct 20, 2022
2a1cff5
BUG#AC-2481 Icon buttons with no accessible name. (pattern: Icon butt…
RaghavendraTirumalasetti Oct 20, 2022
3436ced
AC-2481 Icon buttons with no accessible name. (pattern: Icon buttons …
RaghavendraTirumalasetti Nov 2, 2022
b9de407
AC-2481 Icon buttons with no accessible name. (pattern: Icon buttons …
RaghavendraTirumalasetti Nov 2, 2022
4027fc6
AC-2481 Icon buttons with no accessible name. (pattern: Icon buttons …
RaghavendraTirumalasetti Nov 11, 2022
e9b9320
AC-2481 Icon buttons with no accessible name. (pattern: Icon buttons …
RaghavendraTirumalasetti Nov 11, 2022
1c00abe
AC-2481 Icon buttons with no accessible name. (pattern: Icon buttons …
RaghavendraTirumalasetti Nov 11, 2022
a025749
AC-2481 Icon buttons with no accessible name. (pattern: Icon buttons …
RaghavendraTirumalasetti Nov 16, 2022
c3b6cb9
Merge branch 'develop' into BUG#AC-2481
glo82145 Nov 16, 2022
45cf265
AC-2481 Icon buttons with no accessible name. (pattern: Icon buttons …
RaghavendraTirumalasetti Nov 16, 2022
ffd6ec3
Update packages/pagebuilder/lib/ContentTypes/Slider/__tests__/slider.…
RaghavendraTirumalasetti Nov 17, 2022
4263f68
BUG#AC-2481 Icon buttons with no accessible name. (pattern: Icon butt…
RaghavendraTirumalasetti Nov 17, 2022
35f4a53
Merge branch 'develop' into BUG#AC-2481
RaghavendraTirumalasetti Nov 17, 2022
e1ad653
Merge branch 'develop' into BUG#AC-2481
glo82145 Nov 22, 2022
99e8363
PWA-3023: [Issue] BUG#AC-2481 Icon buttons with no accessible name. (…
anthoula Nov 28, 2022
cafc116
skip failed tests
dpatil-magento Nov 29, 2022
8339958
revert skipped tests
dpatil-magento Nov 29, 2022
9c8c127
PWA-3023: [Issue] BUG#AC-2481 Icon buttons with no accessible name. (…
anthoula Nov 29, 2022
23effcf
PWA-3023: [Issue] BUG#AC-2481 Icon buttons with no accessible name. (…
anthoula Nov 29, 2022
d08fdf3
PWA-3023: [Issue] BUG#AC-2481 Icon buttons with no accessible name. (…
anthoula Nov 29, 2022
65b7cb5
PWA-3023: [Issue] BUG#AC-2481 Icon buttons with no accessible name. (…
anthoula Dec 1, 2022
c8eea72
PWA-3023: [Issue] BUG#AC-2481 Icon buttons with no accessible name. (…
anthoula Dec 1, 2022
47603f3
PWA-3023: [Issue] BUG#AC-2481 Icon buttons with no accessible name. (…
anthoula Dec 1, 2022
d0d944b
Merge branch 'develop' of github.com:magento/pwa-studio into BUG#AC-2481
anthoula Dec 1, 2022
62bd0b0
update product snap
dpatil-magento Dec 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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 @@ -295,7 +295,7 @@ test('render carousel with default props and verify Slick is called correctly',
autoplaySpeed: 4000,
infinite: false,
arrows: false,
dots: true,
dots: false,
carouselMode: 'default',
centerPadding: '60px'
};
Expand Down Expand Up @@ -332,7 +332,7 @@ test('render carousel with default props and verify Slick is called correctly',
infinite: false,
draggable: false,
arrows: false,
dots: true,
dots: false,
slidesToShow: 5,
slidesToScroll: 5,
centerMode: false,
Expand Down Expand Up @@ -433,7 +433,7 @@ test('render carousel with continuous mode and verify Slick is called correctly'
autoplaySpeed: 4000,
infinite: true,
arrows: false,
dots: true,
dots: false,
carouselMode: 'continuous',
centerPadding: '90px'
};
Expand All @@ -445,7 +445,7 @@ test('render carousel with continuous mode and verify Slick is called correctly'
autoplaySpeed: 4000,
draggable: false,
arrows: false,
dots: true,
dots: false,
infinite: true,
slidesToShow: 5,
slidesToScroll: 5,
Expand Down Expand Up @@ -549,7 +549,7 @@ test('render carousel with infinite loop and verify Slick is called correctly',
autoplaySpeed: 4000,
infinite: true,
arrows: false,
dots: true,
dots: false,
carouselMode: 'default'
};
createTestInstance(<Products {...productProps} />);
Expand All @@ -561,7 +561,7 @@ test('render carousel with infinite loop and verify Slick is called correctly',
draggable: false,
infinite: true,
arrows: false,
dots: true,
dots: false,
slidesToShow: 5,
slidesToScroll: 5,
centerMode: false,
Expand Down Expand Up @@ -656,7 +656,7 @@ test('render carousel with continuous mode with 5 products and verify Slick is c
autoplaySpeed: 4000,
infinite: true,
arrows: true,
dots: true,
dots: false,
carouselMode: 'continuous',
centerPadding: '90px'
};
Expand All @@ -669,7 +669,7 @@ test('render carousel with continuous mode with 5 products and verify Slick is c
draggable: false,
infinite: false,
arrows: true,
dots: true,
dots: false,
slidesToShow: 5,
slidesToScroll: 5,
centerMode: false,
Expand Down Expand Up @@ -739,7 +739,7 @@ test('render carousel with continuous mode with 1 product and verify Slick is ca
autoplaySpeed: 4000,
infinite: true,
arrows: false,
dots: true,
dots: false,
carouselMode: 'continuous',
centerPadding: '90px'
};
Expand All @@ -751,7 +751,7 @@ test('render carousel with continuous mode with 1 product and verify Slick is ca
autoplaySpeed: 4000,
infinite: false,
arrows: false,
dots: true,
dots: false,
slidesToShow: 5,
slidesToScroll: 5,
centerMode: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default (node, props) => {
autoplaySpeed: parseInt(node.getAttribute('data-autoplay-speed')),
infinite: node.getAttribute('data-infinite-loop') === 'true',
arrows: node.getAttribute('data-show-arrows') === 'true',
dots: node.getAttribute('data-show-dots') === 'true',
dots: node.getAttribute('data-show-dots') === 'false',
carouselMode: node.getAttribute('data-carousel-mode'),
centerPadding: node.getAttribute('data-center-padding')
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ test('config is aggregated correctly for slider', () => {
autoplaySpeed: 500,
fade: true,
infinite: true,
showArrows: true,
showDots: true
showArrows: false,
showDots: false
})
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ test('render slider with props and verify Slick is called correctly', () => {
autoplaySpeed: 333,
fade: true,
infinite: true,
showArrows: true,
showDots: true
showArrows: false,
showDots: false
};
createTestInstance(<Slider {...sliderProps} />);

Expand All @@ -37,8 +37,8 @@ test('render slider with props and verify Slick is called correctly', () => {
autoplaySpeed: 333,
fade: true,
infinite: true,
arrows: true,
dots: true
arrows: false,
dots: false
}),
expect.anything()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default node => {
autoplay: node.getAttribute('data-autoplay') === 'true',
fade: node.getAttribute('data-fade') === 'true',
infinite: node.getAttribute('data-infinite-loop') === 'true',
showArrows: node.getAttribute('data-show-arrows') === 'true',
showDots: node.getAttribute('data-show-dots') === 'true',
showArrows: node.getAttribute('data-show-arrows') === 'false',
showDots: node.getAttribute('data-show-dots') === 'false',
...(!isNaN(autoplaySpeed) && { autoplaySpeed }),
...getAdvanced(node),
...getMediaQueries(node)
Expand Down
2 changes: 1 addition & 1 deletion packages/pagebuilder/lib/ContentTypes/Slider/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const Slider = props => {
paddingLeft
};
const jarallaxInstances = {};

const sliderSettings = {
dots: showDots,
arrows: showArrows,
Expand All @@ -88,7 +89,6 @@ const Slider = props => {
autoplaySpeed,
fade
};

// Override classes on banner to ensure min height is respected
Children.map(children, (child, index) => {
if (child.props && child.props.data) {
Expand Down
17 changes: 7 additions & 10 deletions packages/pagebuilder/lib/ContentTypes/Slider/slider.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,6 @@
display: none;
}

.root :global .slick-prev,
.root :global .slick-next {
opacity: 0;
transition: 0.3s;
}
.root:hover :global .slick-prev,
.root:hover :global .slick-next {
opacity: 1;
}

.root :global .slick-prev {
left: 1.6rem;
}
Expand All @@ -160,6 +150,7 @@
font-size: 0;
height: 40px;
line-height: 0;
opacity: 1;
outline: none;
padding: 0;
position: absolute;
Expand All @@ -169,6 +160,12 @@
z-index: 101;
}

.root :global .slick-prev:focus-visible,
.root :global .slick-next:focus-visible {
outline: auto;
outline: -webkit-focus-ring-color auto 1px;
}

.root :global .slick-dots {
display: block;
list-style: none;
Expand Down
7 changes: 7 additions & 0 deletions packages/venia-ui/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,13 @@
"wishlist.itemCountOpen": "Showing {currentCount} of {count} items in this list",
"wishlist.itemCountClosed": "You have {count} {count, plural, one {item} other {items}} in this list",
"wishlist.loadMore": "Load More",
"LegacyMiniCart.buttonExpanded":"More Options Expanded",
"LegacyMiniCart.buttonCollapsed":"More Options Collapsed",
"global.deletedButton":"Item Deleted",
"password.hide":"Hide Password",
"password.View":"View Password",
"global.clearText":"Clear Text",
"global.close":"Close",
"global.firstNameRequired":"First Name Required",
"global.lastNameRequired":"Last Name Required",
"global.emailRequired":"Email Required",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
/>
</span>
Expand Down Expand Up @@ -91,6 +92,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
/>
</span>
Expand Down Expand Up @@ -136,6 +138,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
/>
</span>
Expand Down Expand Up @@ -183,13 +186,15 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
>
<button
className="passwordButton"
disabled={false}
onClick={[Function]}
onDragStart={[Function]}
onKey={true}
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
Expand All @@ -206,6 +211,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
className="content"
>
<svg
aria-label="View Password"
fill="none"
height={24}
stroke="currentColor"
Expand Down Expand Up @@ -315,6 +321,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
/>
</span>
Expand Down Expand Up @@ -360,6 +367,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
/>
</span>
Expand Down Expand Up @@ -405,6 +413,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
/>
</span>
Expand Down Expand Up @@ -452,13 +461,15 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
>
<button
className="passwordButton"
disabled={false}
onClick={[Function]}
onDragStart={[Function]}
onKey={true}
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
Expand All @@ -475,6 +486,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
className="content"
>
<svg
aria-label="View Password"
fill="none"
height={24}
stroke="currentColor"
Expand Down Expand Up @@ -542,13 +554,15 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
className="before"
/>
<span
aria-hidden="false"
className="after"
>
<button
className="passwordButton"
disabled={false}
onClick={[Function]}
onDragStart={[Function]}
onKey={true}
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
Expand All @@ -565,6 +579,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
className="content"
>
<svg
aria-label="View Password"
fill="none"
height={24}
stroke="currentColor"
Expand Down
Loading