Skip to content

Commit

Permalink
fix(cxl-ui): fixed portrait cards slider overflow problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Hener Hoop committed Nov 6, 2023
1 parent bed22c0 commit 6649475
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cxl-ui/src/components/cxl-tabs-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ export class CXLTabsSliderElement extends Tabs {
* @protected
*/
get _scrollOffset() {
if (this.getAttribute('theme').split(' ').includes('cxl-category-accordion')) {
const theme = this.getAttribute('theme').split(' ');

if (theme.includes('cxl-category-accordion') || theme.includes('cxl-slider-dashboard-header')) {
return 200;
}

return super._scrollOffset;
}

Expand Down

0 comments on commit 6649475

Please sign in to comment.