Skip to content

Commit a22fd72

Browse files
committed
style: enhance ContextMenuCheckboxItem and update box shadow variable
- Updated the ContextMenuCheckboxItem to improve focus styles by changing the text color on focus. - Renamed the box shadow variable in tailwind.css for better clarity and consistency in styling. Signed-off-by: Innei <tukon479@gmail.com>
1 parent ae7725f commit a22fd72

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/ui/context-menu/context-menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const ContextMenuCheckboxItem = ({
125125
<ContextMenuPrimitive.CheckboxItem
126126
ref={ref}
127127
className={clsxm(
128-
'cursor-checkbox focus:bg-accent text-sm text-foreground relative flex select-none items-center rounded-[5px] px-8 py-1.5 outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
128+
'cursor-checkbox focus:bg-accent focus:text-white text-sm text-foreground relative flex select-none items-center rounded-[5px] px-8 py-1.5 outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
129129
'focus-within:outline-transparent',
130130
'h-[28px]',
131131
className,

src/styles/tailwind.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ body {
6161
/* Blur */
6262
--blur-background: 70px;
6363

64-
/* Shadow */
65-
--shadow-context-menu:
66-
0px 0px 1px rgba(0, 0, 0, 0.12), 0px 0px 1.5px rgba(0, 0, 0, 0.04),
67-
0px 7px 22px rgba(0, 0, 0, 0.08);
64+
/* Box shadow */
65+
--box-shadow-context-menu:
66+
rgba(0, 0, 0, 0.067) 0px 3px 8px, rgba(0, 0, 0, 0.067) 0px 2px 5px,
67+
rgba(0, 0, 0, 0.067) 0px 1px 1px;
6868

6969
/* Font */
7070
--text-large-title: 1.625rem;

0 commit comments

Comments
 (0)