feat(web-core): add accent prop to MenuItem - #10348
Conversation
sylvere-a
left a comment
There was a problem hiding this comment.
-
Additional file to be changed:
@xen-orchestra/web/src/modules/pool/components/list/PoolsTable.vue:
'action:forget'and'action:disconnect'should have the "danger" accent as well. -
The XO Lite changelog should probably be updated?
| <MenuItem accent="brand" icon="fa:layer-group" @click="emit('convertToGroup')"> | ||
| {{ t('action:turn-into-group') }} | ||
| </MenuItem> | ||
| <MenuItem accent="brand" icon="fa:trash" @click="emit('remove')">{{ t('action:delete-filter') }}</MenuItem> |
There was a problem hiding this comment.
| <MenuItem accent="brand" icon="fa:trash" @click="emit('remove')">{{ t('action:delete-filter') }}</MenuItem> | |
| <MenuItem accent="danger" icon="fa:trash" @click="emit('remove')">{{ t('action:delete-filter') }}</MenuItem> |
Figma says it should be "danger" (even though it does not have a special class for now - and the menu's z-index is broken...)
| <MenuItem accent="brand" @click="emit('remove', true)"> | ||
| {{ t('action:move-filters-to-parent-group') }} | ||
| </MenuItem> | ||
| <MenuItem accent="brand" @click="emit('remove')">{{ t('action:delete-group') }}</MenuItem> |
There was a problem hiding this comment.
| <MenuItem accent="brand" @click="emit('remove')">{{ t('action:delete-group') }}</MenuItem> | |
| <MenuItem accent="danger" @click="emit('remove')">{{ t('action:delete-group') }}</MenuItem> |
same as previous file
| <MenuItem v-if="showChangeStateButton && !uiStore.isSmall" icon="action:change-state" class="change-state"> | ||
| <MenuItem | ||
| v-if="showChangeStateButton && !uiStore.isSmall" | ||
| accent="brand" |
There was a problem hiding this comment.
Should be a different accent, as discussed
| <template> | ||
| <MenuItem | ||
| v-tooltip="!canDetachHost && detachHostErrorMessage" | ||
| accent="brand" |
There was a problem hiding this comment.
Should be a different accent, as discussed
| @@ -1,5 +1,5 @@ | |||
| <template> | |||
| <MenuItem class="change-state" icon="action:change-state"> | |||
| <MenuItem accent="brand" class="change-state" icon="action:change-state"> | |||
There was a problem hiding this comment.
"Change state" exception here too
| @@ -1,5 +1,6 @@ | |||
| <template> | |||
| <MenuItem | |||
| accent="brand" | |||
There was a problem hiding this comment.
| accent="brand" | |
| accent="danger" |
- remove the
disconnectclass on this element - delete the
.disconnectclass at the bottom of this file
| </MenuItem> | ||
|
|
||
| <MenuItem class="icon" icon="fa:arrow-right-from-bracket" @click="logout()"> | ||
| <MenuItem accent="brand" class="icon" icon="fa:arrow-right-from-bracket" @click="logout()"> |
There was a problem hiding this comment.
For some reason the icon is white in the default state now (but ok on hover)...
| @@ -1,5 +1,5 @@ | |||
| <template> | |||
| <MenuItem icon="action:delete" :disabled="!canDeleteVifs" :busy="isDeletingVifs" @click="deleteVifs()"> | |||
| <MenuItem accent="brand" icon="action:delete" :disabled="!canDeleteVifs" :busy="isDeletingVifs" @click="deleteVifs()"> | |||
There was a problem hiding this comment.
| <MenuItem accent="brand" icon="action:delete" :disabled="!canDeleteVifs" :busy="isDeletingVifs" @click="deleteVifs()"> | |
| <MenuItem accent="danger" icon="action:delete" :disabled="!canDeleteVifs" :busy="isDeletingVifs" @click="deleteVifs()"> |
| <template> | ||
| <MenuItem | ||
| v-tooltip="areSomeVmsInExecution && t('selected-vms-in-execution')" | ||
| accent="brand" |
There was a problem hiding this comment.
| accent="brand" | |
| accent="danger" |
| <style lang="postcss" scoped> | ||
| .delete { | ||
| color: var(--color-danger-item-base); | ||
| } | ||
| </style> |
Description
Adds accent prop to MenuItem and remove local overrides
Checklist
Fixes #007,See xoa-support#42,See https://...)Introduced byCHANGELOG.unreleased.mdReview process
If you are an external contributor, you can skip this part. Simply create the pull request, and we'll get back to you as soon as possible.
Notes: