forked from web-padawan/aybolit
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cxl-ui): fix course card layout issues
- Loading branch information
1 parent
f561d10
commit a4520ae
Showing
10 changed files
with
75 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<style> | ||
#root { | ||
max-width: 100vw; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/storybook/cxl-ui/cxl-course-card/course-card-slider.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { html } from 'lit'; | ||
import '@conversionxl/cxl-ui/src/components/cxl-light-card.js'; | ||
import '@conversionxl/cxl-ui/src/components/cxl-tabs-slider.js'; | ||
import '@conversionxl/cxl-lumo-styles'; | ||
import { CXLCourseCard } from './[theme=course|lesson].stories.js'; | ||
|
||
export default { | ||
title: 'CXL UI/cxl-course-card', | ||
}; | ||
|
||
export const CXLCourseCardSlider = ({ numberOfCards, theme }) => html` | ||
<style> | ||
cxl-course-card { | ||
max-width: 400px !important; | ||
} | ||
</style> | ||
<cxl-tabs-slider theme="cxl-course-slider minimal ${theme}"> | ||
${Array.from( | ||
{ length: numberOfCards }, | ||
() => html` | ||
<vaadin-tab theme="cxl-course-slider" | ||
>${CXLCourseCard({ | ||
...CXLCourseCard.args, | ||
})}</vaadin-tab | ||
> | ||
` | ||
)} | ||
</cxl-tabs-slider> | ||
`; | ||
|
||
CXLCourseCardSlider.args = { | ||
numberOfCards: 3, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters