Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Remove border in hover/pressed state of primary button.",
"packageName": "@fluentui/react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
3 changes: 0 additions & 3 deletions packages/react/src/components/Button/ButtonThemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ export function primaryStyles(theme: ITheme): IButtonStyles {
return {
root: {
backgroundColor: s.primaryButtonBackground,
border: `1px solid ${s.primaryButtonBackground}`,
color: s.primaryButtonText,
selectors: {
[HighContrastSelector]: {
Expand All @@ -179,7 +178,6 @@ export function primaryStyles(theme: ITheme): IButtonStyles {

rootHovered: {
backgroundColor: s.primaryButtonBackgroundHovered,
border: `1px solid ${s.primaryButtonBackgroundHovered}`,
color: s.primaryButtonTextHovered,
selectors: {
[HighContrastSelector]: {
Expand All @@ -192,7 +190,6 @@ export function primaryStyles(theme: ITheme): IButtonStyles {

rootPressed: {
backgroundColor: s.primaryButtonBackgroundPressed,
border: `1px solid ${s.primaryButtonBackgroundPressed}`,
color: s.primaryButtonTextPressed,
selectors: {
[HighContrastSelector]: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ exports[`TeachingBubble renders renders with hasCloseIcon which is deprecated 1`
background-color: #ffffff;
border-color: #ffffff;
border-radius: 2px;
border: 1px solid #0078d4;
border: 1px solid #8a8886;
box-sizing: border-box;
color: #0078d4;
cursor: pointer;
Expand Down Expand Up @@ -234,7 +234,6 @@ exports[`TeachingBubble renders renders with hasCloseIcon which is deprecated 1`
&:hover {
background-color: #deecf9;
border-color: #deecf9;
border: 1px solid #106ebe;
color: #005a9e;
}
@media screen and (-ms-high-contrast: active), screen and (forced-colors: active){&:hover {
Expand All @@ -252,7 +251,6 @@ exports[`TeachingBubble renders renders with hasCloseIcon which is deprecated 1`
&:active {
background-color: #ffffff;
border-color: #ffffff;
border: 1px solid #005a9e;
color: #0078d4;
}
@media screen and (-ms-high-contrast: active), screen and (forced-colors: active){&:active {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ exports[`TeachingBubble renders TeachingBubbleContent with buttons correctly 1`]
background-color: #ffffff;
border-color: #ffffff;
border-radius: 2px;
border: 1px solid #0078d4;
border: 1px solid #8a8886;
box-sizing: border-box;
color: #0078d4;
cursor: pointer;
Expand Down Expand Up @@ -516,7 +516,6 @@ exports[`TeachingBubble renders TeachingBubbleContent with buttons correctly 1`]
&:hover {
background-color: #deecf9;
border-color: #deecf9;
border: 1px solid #106ebe;
color: #005a9e;
}
@media screen and (-ms-high-contrast: active), screen and (forced-colors: active){&:hover {
Expand All @@ -534,7 +533,6 @@ exports[`TeachingBubble renders TeachingBubbleContent with buttons correctly 1`]
&:active {
background-color: #ffffff;
border-color: #ffffff;
border: 1px solid #005a9e;
color: #0078d4;
}
@media screen and (-ms-high-contrast: active), screen and (forced-colors: active){&:active {
Expand Down