-
Notifications
You must be signed in to change notification settings - Fork 266
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(web-core): added UiDropdownButton component #8076
base: master
Are you sure you want to change the base?
Conversation
7ae0578
to
f25a126
Compare
@xen-orchestra/web-core/lib/components/ui/dropdown-button/UiDropdownButton.vue
Outdated
Show resolved
Hide resolved
@xen-orchestra/web-core/lib/components/ui/dropdown-button/UiDropdownButton.vue
Outdated
Show resolved
Hide resolved
@xen-orchestra/web-core/lib/components/ui/dropdown-button/UiDropdownButton.vue
Outdated
Show resolved
Hide resolved
@xen-orchestra/web-core/lib/components/ui/dropdown-button/UiDropdownButton.vue
Outdated
Show resolved
Hide resolved
@xen-orchestra/web-core/lib/components/ui/dropdown-button/UiDropdownButton.vue
Outdated
Show resolved
Hide resolved
af3a8d4
to
1e604ab
Compare
defineProps<{ | ||
disabled?: boolean | ||
selected?: boolean | ||
leftIcon?: IconDefinition |
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.
Since it's the only possible prop icon, I'd suggest renaming leftIcon
to icon
.
leftIcon?: IconDefinition | |
icon?: IconDefinition |
position: relative; | ||
|
||
.label, | ||
.right-icon, | ||
.left-icon { | ||
color: var(--color-normal-txt-base); | ||
} |
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 don't think it's necessary to target specific sub-items.
position: relative; | |
.label, | |
.right-icon, | |
.left-icon { | |
color: var(--color-normal-txt-base); | |
} | |
position: relative; | |
color: var(--color-normal-txt-base); |
background-color: var(--color-normal-background-hover); | ||
|
||
.label, | ||
.right-icon, | ||
.left-icon { | ||
color: var(--color-normal-txt-hover); | ||
} |
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.
background-color: var(--color-normal-background-hover); | |
.label, | |
.right-icon, | |
.left-icon { | |
color: var(--color-normal-txt-hover); | |
} | |
background-color: var(--color-normal-background-hover); | |
color: var(--color-normal-txt-hover); |
background-color: var(--color-normal-background-active); | ||
|
||
.label, | ||
.right-icon, | ||
.left-icon { | ||
color: var(--color-normal-txt-active); | ||
} |
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.
background-color: var(--color-normal-background-active); | |
.label, | |
.right-icon, | |
.left-icon { | |
color: var(--color-normal-txt-active); | |
} | |
background-color: var(--color-normal-background-active); | |
color: var(--color-normal-txt-active); |
background-color: var(--color-neutral-background-disabled); | ||
|
||
.label, | ||
.right-icon, | ||
.left-icon { | ||
color: var(--color-neutral-txt-secondary); | ||
} |
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.
background-color: var(--color-neutral-background-disabled); | |
.label, | |
.right-icon, | |
.left-icon { | |
color: var(--color-neutral-txt-secondary); | |
} | |
background-color: var(--color-neutral-background-disabled); | |
color: var(--color-neutral-txt-secondary); |
&.selected { | ||
border: 0.2rem solid var(--color-normal-txt-base); | ||
background-color: var(--color-normal-background-selected); | ||
} |
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.
Is it expected that .selected
has no color
setting?
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.
Yes because according to the DS the color of .selected
is the same as idle
1e604ab
to
fd6108f
Compare
@xen-orchestra/web-core/lib/components/ui/dropdown-button/UiDropdownButton.vue
Outdated
Show resolved
Hide resolved
@xen-orchestra/web-core/lib/components/ui/dropdown-button/UiDropdownButton.vue
Outdated
Show resolved
Hide resolved
c2375c9
to
ae13401
Compare
Description
added UiDropdownButton component
Screenshot
Checklist
Fixes #007
,See xoa-support#42
,See https://...
)Introduced by
CHANGELOG.unreleased.md
Review process
Notes: