Skip to content

Commit

Permalink
IconButton: add color to IconButton so it can be themed. (#6511)
Browse files Browse the repository at this point in the history
* Add amd change colors on IconButton styles
Update snapshots

* Rush change log
  • Loading branch information
Vitalius1 authored and micahgodbolt committed Oct 11, 2018
1 parent 3225f2f commit a0f35e5
Show file tree
Hide file tree
Showing 14 changed files with 66 additions and 29 deletions.
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "IconButton: Specifiy the color of the icon in IconButton so that it can be themed and change the hover color for the same reasons.",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "v-vibr@microsoft.com"
}
Expand Up @@ -425,6 +425,7 @@ exports[`Breadcrumb basic rendering renders breadcumb correctly 2 1`] = `
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -475,7 +476,7 @@ exports[`Breadcrumb basic rendering renders breadcumb correctly 2 1`] = `
}
&:hover {
background-color: #f4f4f4;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down Expand Up @@ -1137,6 +1138,7 @@ exports[`Breadcrumb basic rendering renders breadcumb correctly 4 1`] = `
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -1187,7 +1189,7 @@ exports[`Breadcrumb basic rendering renders breadcumb correctly 4 1`] = `
}
&:hover {
background-color: #f4f4f4;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down Expand Up @@ -1504,6 +1506,7 @@ exports[`Breadcrumb basic rendering renders breadcumb correctly 5 1`] = `
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -1554,7 +1557,7 @@ exports[`Breadcrumb basic rendering renders breadcumb correctly 5 1`] = `
}
&:hover {
background-color: #f4f4f4;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down Expand Up @@ -1713,6 +1716,7 @@ exports[`Breadcrumb basic rendering renders breadcumb correctly 6 1`] = `
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -1763,7 +1767,7 @@ exports[`Breadcrumb basic rendering renders breadcumb correctly 6 1`] = `
}
&:hover {
background-color: #f4f4f4;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down
Expand Up @@ -15,11 +15,12 @@ export const getStyles = memoizeFunction(
width: '32px',
height: '32px',
backgroundColor: 'transparent',
border: 'none'
border: 'none',
color: semanticColors.actionLink
},

rootHovered: {
color: palette.themeDarker,
color: semanticColors.actionLinkHovered,
selectors: {
[HighContrastSelector]: {
borderColor: 'Highlight',
Expand Down
Expand Up @@ -578,6 +578,7 @@ exports[`Button renders IconButton correctly 1`] = `
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -624,7 +625,7 @@ exports[`Button renders IconButton correctly 1`] = `
top: 0px;
}
&:hover {
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down
Expand Up @@ -637,7 +637,7 @@ exports[`TeachingBubble renders TeachingBubbleContent with buttons correctly 1`]
}
&:hover {
background: transparent;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down
Expand Up @@ -2047,6 +2047,7 @@ exports[`Component Examples renders Breadcrumb.Basic.Example.tsx correctly 1`] =
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -2097,7 +2098,7 @@ exports[`Component Examples renders Breadcrumb.Basic.Example.tsx correctly 1`] =
}
&:hover {
background-color: #f4f4f4;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down Expand Up @@ -2774,6 +2775,7 @@ exports[`Component Examples renders Breadcrumb.Basic.Example.tsx correctly 1`] =
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -2824,7 +2826,7 @@ exports[`Component Examples renders Breadcrumb.Basic.Example.tsx correctly 1`] =
}
&:hover {
background-color: #f4f4f4;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down
Expand Up @@ -86,6 +86,7 @@ exports[`Component Examples renders Breadcrumb.Static.Example.tsx correctly 1`]
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -136,7 +137,7 @@ exports[`Component Examples renders Breadcrumb.Static.Example.tsx correctly 1`]
}
&:hover {
background-color: #f4f4f4;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down
Expand Up @@ -23,6 +23,7 @@ exports[`Component Examples renders Button.Icon.Example.tsx correctly 1`] = `
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -69,7 +70,7 @@ exports[`Component Examples renders Button.Icon.Example.tsx correctly 1`] = `
top: 0px;
}
&:hover {
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down
Expand Up @@ -1322,6 +1322,7 @@ exports[`Component Examples renders Button.Split.Example.tsx correctly 2`] = `
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -1368,7 +1369,7 @@ exports[`Component Examples renders Button.Split.Example.tsx correctly 2`] = `
top: 0px;
}
&:hover {
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down
Expand Up @@ -2259,7 +2259,7 @@ exports[`Component Examples renders CommandBar.CommandBarButtonAs.Example.tsx co
}
&:hover {
background: transparent;
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down
Expand Up @@ -390,6 +390,7 @@ exports[`Component Examples renders DocumentCard.Complete.Example.tsx correctly
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -436,7 +437,7 @@ exports[`Component Examples renders DocumentCard.Complete.Example.tsx correctly
top: 0px;
}
&:hover {
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down Expand Up @@ -511,6 +512,7 @@ exports[`Component Examples renders DocumentCard.Complete.Example.tsx correctly
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -557,7 +559,7 @@ exports[`Component Examples renders DocumentCard.Complete.Example.tsx correctly
top: 0px;
}
&:hover {
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down Expand Up @@ -632,6 +634,7 @@ exports[`Component Examples renders DocumentCard.Complete.Example.tsx correctly
border-radius: 0px;
border: none;
box-sizing: border-box;
color: #333333;
cursor: pointer;
display: inline-block;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -678,7 +681,7 @@ exports[`Component Examples renders DocumentCard.Complete.Example.tsx correctly
top: 0px;
}
&:hover {
color: #004578;
color: #212121;
}
@media screen and (-ms-high-contrast: active){&:hover {
border-color: Highlight;
Expand Down

0 comments on commit a0f35e5

Please sign in to comment.