Skip to content

Commit 2de22fb

Browse files
committed
Enhanced focused style for mobile
1 parent 7d34ed4 commit 2de22fb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/index.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ to maintain uniformity in the design.
7373
--shadow-sm: 0 2px 4px var(--shadow-color);
7474
--shadow-md: 0 4px 8px var(--shadow-color);
7575
--shadow-lg: 0 8px 16px var(--shadow-color);
76+
--focus-color: #ffe8dc;
7677

7778
/* Transitions */
7879
--transition-base: 0.3s ease;
@@ -99,6 +100,15 @@ to maintain uniformity in the design.
99100
height: 2px;
100101
}
101102

103+
*:focus {
104+
outline: none;
105+
-webkit-tap-highlight-color: transparent;
106+
}
107+
108+
*:focus-visible {
109+
outline: 2px solid var(--focus-color);
110+
outline-offset: 2px;
111+
}
102112

103113

104114
/* Body and Default Layout */
@@ -178,5 +188,4 @@ th {
178188
background-color: var(--primary-color);
179189
color: #fff;
180190
font-weight: var(--font-weight-bold);
181-
}
182-
191+
}

0 commit comments

Comments
 (0)