-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tooltip): Use interactive standalone icon
- Loading branch information
1 parent
eebaa00
commit 24ef293
Showing
5 changed files
with
18 additions
and
36 deletions.
There are no files selected for viewing
13 changes: 9 additions & 4 deletions
13
src/components/Icons/StandaloneIcon/StandaloneIcon.modules.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
.interactive { | ||
composes: noSpacing from '../../Spacing.modules.scss'; | ||
composes: none from '../../Borders.modules.scss'; | ||
// Reset the text color because Safari tries to set its own color for buttons | ||
composes: color from '../../Typography/Text/Text.modules.scss'; | ||
|
||
appearance: none; | ||
-moz-appearance: none; | ||
-webkit-appearance: none; | ||
// FIXME: Without the 1px padding the icon gets clipped just barely. This is due to the odd sizing/positioning of | ||
// the icon font. Can switch to the composes when using SVGs. | ||
// composes: noSpacing from '../Spacing.modules.scss'; | ||
padding: 0 1px; | ||
margin: 0; | ||
|
||
appearance: none; | ||
background: none; | ||
box-shadow: none; | ||
|
||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters