-
Notifications
You must be signed in to change notification settings - Fork 10
feat(checkbox): add tile variant with associated styling and examples #992
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
base: master
Are you sure you want to change the base?
Conversation
dpellier
left a comment
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.
- feels weird that the card hover effect is triggered when the mouse enter, even on a non clickable part (as in your Variant example, where there is a spacing aroung the clickable part).
- update Demo variant controls with right category and select options
| @@ -1,3 +1,4 @@ | |||
| import { CHECKBOX_VARIANT } from '@ovhcloud/ods-react-checkbox/src/constants/checkbox-variant'; | |||
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.
do not use lib import, if used on Canvas or storybook will display the minified code, import from '../../../../ods-react/src/components/checkbox/src';
|
|
||
| export const Variants: Story = { | ||
| globals: { | ||
| imports: `import { Checkbox, CheckboxControl, CheckboxLabel } from '@ovhcloud/ods-react';`, |
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.
missing CHECKBOX_VARIANT
| @@ -0,0 +1,14 @@ | |||
| enum CHECKBOX_VARIANT { | |||
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.
add those to the index.ts export
| background-color: var(--ods-tile-background-color-checked); | ||
| } | ||
|
|
||
| &:has([data-disabled]) { |
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.
did you try all states here?
- disabled + hover
- disabled + checked
- disabled + checked + hover
No description provided.