Skip to content

Commit

Permalink
refactor(odyssey-react-mui): remove borders from button:hover
Browse files Browse the repository at this point in the history
  • Loading branch information
edburyenegren-okta committed Jul 14, 2023
1 parent 654c65a commit 2e7f1c9
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions packages/odyssey-react-mui/src/theme/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ export const components = (
borderWidth: odysseyTokens.BorderWidthMain,
borderStyle: odysseyTokens.BorderStyleMain,
borderRadius: odysseyTokens.BorderRadiusMain,
borderColor: "transparent",
fontSize: odysseyTokens.TypographySizeBody,
fontWeight: odysseyTokens.TypographyWeightBodyBold,
fontFamily: odysseyTokens.TypographyFamilyButton,
Expand Down Expand Up @@ -346,7 +347,6 @@ export const components = (

...(ownerState.variant === "primary" && {
color: odysseyTokens.HueNeutralWhite,
borderColor: "transparent",
backgroundColor: odysseyTokens.PalettePrimaryMain,

"&:hover": {
Expand All @@ -365,47 +365,39 @@ export const components = (

...(ownerState.variant === "secondary" && {
backgroundColor: odysseyTokens.HueBlue100,
borderColor: "transparent",
color: odysseyTokens.PalettePrimaryDark,

"&:hover": {
backgroundColor: odysseyTokens.HueBlue200,
borderColor: odysseyTokens.BorderColorPrimaryMain,
color: odysseyTokens.HueBlue800,
},

"&:active": {
backgroundColor: odysseyTokens.PalettePrimaryLight,
borderColor: odysseyTokens.BorderColorPrimaryMain,
color: odysseyTokens.HueBlue800,
},

"&:disabled": {
borderColor: "transparent",
backgroundColor: odysseyTokens.HueNeutral100,
color: odysseyTokens.TypographyColorDisabled,
},
}),

...(ownerState.variant === "tertiary" && {
backgroundColor: odysseyTokens.HueNeutral200,
borderColor: "transparent",
backgroundColor: odysseyTokens.HueNeutral100,
color: odysseyTokens.HueNeutral700,

"&:hover": {
backgroundColor: odysseyTokens.HueNeutral200,
borderColor: odysseyTokens.BorderColorUi,
color: odysseyTokens.HueNeutral800,
},

"&:active": {
backgroundColor: odysseyTokens.HueNeutral300,
borderColor: odysseyTokens.BorderColorUi,
color: odysseyTokens.HueNeutral800,
},

"&:disabled": {
borderColor: "transparent",
backgroundColor: odysseyTokens.HueNeutral100,
color: odysseyTokens.TypographyColorDisabled,
},
Expand All @@ -414,7 +406,6 @@ export const components = (
...(ownerState.variant === "danger" && {
backgroundColor: odysseyTokens.PaletteDangerMain,
color: odysseyTokens.HueNeutralWhite,
borderColor: "transparent",

"&:hover": {
backgroundColor: odysseyTokens.PaletteDangerDark,
Expand All @@ -436,11 +427,9 @@ export const components = (
...(ownerState.variant === "floating" && {
backgroundColor: "transparent",
color: odysseyTokens.TypographyColorBody,
borderColor: "transparent",

"&:hover": {
backgroundColor: odysseyTokens.HueNeutral100,
borderColor: "transparent",
},

"&:active": {
Expand Down

0 comments on commit 2e7f1c9

Please sign in to comment.