Skip to content

Commit

Permalink
refactor: menu and footer to follow button component style practices
Browse files Browse the repository at this point in the history
  • Loading branch information
ViksCO committed Nov 12, 2024
1 parent 635cd0b commit d3e3b9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/footer/footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<template>
<div class="acv-footer">
<AcvDivider />
<div class="acv-footer_content">
<div class="content">
<!-- @slot Used to pass a custom side content (text or link by design) -->
<slot name="side" />
<div class="actions">
Expand All @@ -25,7 +25,7 @@
flex-direction: column;
}
.acv-footer_content {
.content {
display: flex;
align-items: center;
gap: var(--acv-spacing-regular);
Expand Down
6 changes: 2 additions & 4 deletions packages/ui/src/components/menu-item/menuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
&.disabled {
pointer-events: none;
color: hsl(from var(--_acv-menu-item-color) h s calc(l - 30));
color: var(--acv-color-status-neutral-secondary);
}
&:hover {
Expand All @@ -192,10 +192,8 @@
margin-left: auto;
}
.acv-icon {
--acv-icon-size: var(--acv-icon-size-medium);
.icon {
min-width: 16px;
}
}
</style>
3 changes: 2 additions & 1 deletion packages/ui/src/components/menu/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@
--_acv-menu-item-hover-color: var(--acv-color-nav-label-secondary);
--_acv-menu-item-selected-bg: var(--acv-color-nav-active-primary);
--_acv-menu-item-selected-color: var(--acv-color-nav-label-primary);
--acv-icon-size: var(--acv-icon-size-medium);
grid-template-columns: 256px;
grid-template-rows: auto;
color: var(--acv-color-nav-label-secondary);
background-color: var(--acv-menu-bg-color);
background-color: var(--_acv-menu-bg-color);
&.acv-menu_collapsed {
--acv-menu-item-justify-content: center;
Expand Down

0 comments on commit d3e3b9a

Please sign in to comment.