Skip to content

Commit 3c9f03a

Browse files
committed
add hover state to ebook link button
1 parent 3ea39b0 commit 3c9f03a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/features/common/components/ebook/ebook.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@
254254
letter-spacing: -.2px;
255255
transition: all .3s ease-in-out;
256256

257+
&:hover {
258+
background: var(--color_fg_on_button_primary);
259+
box-shadow: 0 0 0 4px rgba(0,0,0,.2);
260+
transition: all .2s ease-out;
261+
}
262+
257263
:global(html[lang="ja"]) & {
258264
@include LocaleLineHeight("ja", 1rem);
259265
}

src/libs/theme/styles/globals.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ html[data-theme="system-light"] {
180180

181181
--color_fg_on_button: var(--charcoal2);
182182
--color_fg_on_button_subtle: var(--functional-gray-600);
183-
--color_fg_on_button_primary: var(--functional-gray-0);
183+
--color_fg_on_button_primary: var(--functional-gray-1000);
184184
--color_bg_button: var(--functional-gray-0);
185185
--color_bg_button_hover: var(--functional-gray-150);
186186
--color_bg_button_pressed: #e8e8e8;

0 commit comments

Comments
 (0)