Skip to content

Commit

Permalink
Added hover state to font list items
Browse files Browse the repository at this point in the history
  • Loading branch information
pbking committed Feb 20, 2024
1 parent b0a835c commit fc075b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function CollectionFontVariant( {
);

return (
<div className="font-library-modal__library-font-variant">
<div className="font-library-modal__font-card">
<Flex justify="flex-start" align="center" gap="1rem">
<CheckboxControl
checked={ selected }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function LibraryFontVariant( { face, font } ) {
);

return (
<div className="font-library-modal__library-font-variant">
<div className="font-library-modal__font-card">
<Flex justify="flex-start" align="center" gap="1rem">
<CheckboxControl
checked={ isInstalled }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
padding: $grid-unit-20;
margin-top: -1px; /* To collapse the margin with the previous element */

&:hover {
background-color: $gray-100;
}

.font-library-modal__font-card__name {
font-weight: bold;
}
Expand All @@ -64,12 +68,6 @@
}
}

.font-library-modal__library-font-variant {
border: 1px solid $gray-200;
padding: $grid-unit-20;
margin-top: -1px; /* To collapse the margin with the previous element */
}

.font-library-modal__font-variant_demo-image {
display: block;
height: $grid-unit-30;
Expand Down

0 comments on commit fc075b9

Please sign in to comment.