-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: add sbb-checkup-list style class #3038
base: main
Are you sure you want to change the base?
Conversation
f54ee52
to
6e8bec7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Some improvements needed.
@include base-marker-list; | ||
|
||
--sbb-checkup-list-marker-icon: url('https://icons.app.sbb.ch/icons/circle-tick-medium.svg'); | ||
--sbb-checkup-list-marker-icon-color: var(--sbb-color-black); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would current
or inherit
work? If yes, we could leave out --sbb-checkup-list-color var as the consumer could just set "color:" on the list itself (I did not check if it really works ;) )
--sbb-checkup-list-marker-icon-color: var(--sbb-color-black); | |
--sbb-checkup-list-marker-icon-color: current; |
} | ||
} | ||
|
||
@mixin base-marker-list { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest creating SCSS vars for the CSS var names so that the output when consuming checkup-list and step-list is clean of --sbb-list-marker-*
vars. and also re-declarations of a css var. The base-marker-list should be excluded from public api here: src/elements/core/styles/_index.scss
@@ -8,3 +8,7 @@ | |||
.sbb-step-list { | |||
@include lists.step-list; | |||
} | |||
|
|||
.sbb-checkup-list { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkup-list, or simple icon-list, or? @kyubisation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we decided for sbb-icon-list
@@ -76,28 +76,119 @@ | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please cleanup structure to avoid warnings on yarn build (https://github.com/sbb-design-systems/lyne-components/actions/runs/10630456007/job/29469418012?pr=3038)
@mixin checkup-list { | ||
@include base-marker-list; | ||
|
||
--sbb-checkup-list-marker-icon: url('https://icons.app.sbb.ch/icons/circle-tick-medium.svg'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kyubisation, could we deliver with icon CDN url, or do we have to include it as base64?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decision: inline as svg code (probably base64 not even needed)
@@ -66,6 +66,63 @@ const StepsTemplate = (): TemplateResult => html` | |||
)} | |||
`; | |||
|
|||
const CheckupTemplate = (): TemplateResult => html` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the visual tests
@mixin checkup-list { | ||
@include base-marker-list; | ||
|
||
--sbb-checkup-list-marker-icon: url('https://icons.app.sbb.ch/icons/circle-tick-medium.svg'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be, that starting from 36x36 that the medium icon should be chosen (but let's check later with review of @mcilurzo)
Closes #3008