Replace tags-list dropdown icon to Phosphor ThreeDotsVertical (#22562)

GitOrigin-RevId: 50c70aca162e787eb6ab051ac56c6b226a6c6aa6
This commit is contained in:
Antoine Clausse
2024-12-17 17:45:10 +01:00
committed by Copybot
parent 19e962876d
commit 14ba6013ac
4 changed files with 21 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import { sortBy } from 'lodash'
import { useTranslation } from 'react-i18next'
import { Plus, TagSimple } from '@phosphor-icons/react'
import { DotsThreeVertical, Plus, TagSimple } from '@phosphor-icons/react'
import MaterialIcon from '../../../../shared/components/material-icon'
import {
UNCATEGORIZED_KEY,
@@ -93,7 +93,9 @@ export default function TagsList() {
aria-label={t('open_action_menu', { name: tag.name })}
id={`${tag._id}-dropdown-toggle`}
data-testid="tag-dropdown-toggle"
/>
>
{isDsNav && <DotsThreeVertical weight="bold" />}
</DropdownToggle>
<DropdownMenu className="dropdown-menu-sm-width">
<DropdownItem
as="li"

View File

@@ -116,8 +116,12 @@
.tag-menu {
button.dropdown-toggle {
border-radius: var(--border-radius-base);
border: 1px solid var(--white);
color: var(--content-primary-dark);
width: 16px;
height: 16px;
padding: var(--spacing-01) var(--spacing-03);
}
}
}

View File

@@ -177,8 +177,20 @@
.tag-menu {
button.dropdown-toggle {
border: 1px solid var(--content-secondary);
border-radius: var(--border-radius-full);
border: none;
color: var(--content-secondary);
height: 20px;
width: 20px;
padding: 0;
&::after {
display: none;
}
&:hover {
background-color: var(--neutral-20) !important;
}
}
}
}

View File

@@ -285,15 +285,11 @@
.tag-menu {
button.dropdown-toggle {
border-radius: var(--border-radius-base);
background-color: transparent;
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
position: relative;
padding: var(--spacing-01) var(--spacing-03);
&::after {
margin: 0;