Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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: Revert fix for margin added by safari.",
"packageName": "@fluentui/react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ exports[`MicroFeedback renders correctly with inline prop set 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -187,10 +183,6 @@ exports[`MicroFeedback renders correctly with inline prop set 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -359,10 +351,6 @@ exports[`MicroFeedback renders correctly with no props 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -491,10 +479,6 @@ exports[`MicroFeedback renders correctly with no props 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -167,10 +163,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -299,10 +291,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
min-height: 32px;
min-width: 32px;
outline: transparent;
Expand Down Expand Up @@ -409,10 +397,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
min-height: 32px;
min-width: 32px;
outline: transparent;
Expand Down Expand Up @@ -519,10 +503,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
min-height: 32px;
min-width: 32px;
outline: transparent;
Expand Down Expand Up @@ -629,10 +609,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
min-height: 32px;
min-width: 32px;
outline: transparent;
Expand Down Expand Up @@ -739,10 +715,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
min-height: 32px;
min-width: 32px;
outline: transparent;
Expand Down Expand Up @@ -847,10 +819,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -992,10 +960,6 @@ exports[`Pagination render buttons Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1164,10 +1128,6 @@ exports[`Pagination render comboBox Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1297,10 +1257,6 @@ exports[`Pagination render comboBox Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1649,10 +1605,6 @@ exports[`Pagination render comboBox Pagination correctly 1`] = `
font-weight: 400;
height: 100%;
line-height: 30px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1804,10 +1756,6 @@ exports[`Pagination render comboBox Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1935,10 +1883,6 @@ exports[`Pagination render comboBox Pagination correctly 1`] = `
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ Array [
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: -17px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -395,10 +392,6 @@ Array [
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -587,10 +580,7 @@ Array [
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: -17px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -910,10 +900,6 @@ Array [
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1107,10 +1093,7 @@ Array [
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: -17px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1430,10 +1413,6 @@ Array [
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1622,10 +1601,7 @@ Array [
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: -17px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -1945,10 +1921,6 @@ Array [
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,7 @@ exports[`UnifiedPeoplePicker renders correctly with selected and suggested items
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: -17px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down Expand Up @@ -811,10 +808,6 @@ exports[`UnifiedPeoplePicker renders correctly with selected and suggested items
font-size: 14px;
font-weight: 400;
height: 32px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
padding-bottom: 0;
padding-left: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ exports[`Breadcrumb rendering renders correctly with custom overflow icon 1`] =
font-size: 16px;
font-weight: 400;
height: 100%;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
overflow: hidden;
padding-bottom: 0;
Expand Down Expand Up @@ -1319,10 +1315,6 @@ exports[`Breadcrumb rendering renders correctly with maxDisplayedItems and overf
font-size: 16px;
font-weight: 400;
height: 100%;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
overflow: hidden;
padding-bottom: 0;
Expand Down Expand Up @@ -1536,10 +1528,6 @@ exports[`Breadcrumb rendering renders correctly with maxDisplayedItems and overf
font-size: 16px;
font-weight: 400;
height: 100%;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
overflow: hidden;
padding-bottom: 0;
Expand Down Expand Up @@ -1753,10 +1741,6 @@ exports[`Breadcrumb rendering renders correctly with overflow 1`] = `
font-size: 16px;
font-weight: 400;
height: 100%;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
overflow: hidden;
padding-bottom: 0;
Expand Down Expand Up @@ -2258,10 +2242,6 @@ exports[`Breadcrumb rendering renders correctly with overflow and overflowIndex
font-size: 16px;
font-weight: 400;
height: 100%;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
outline: transparent;
overflow: hidden;
padding-bottom: 0;
Expand Down
4 changes: 1 addition & 3 deletions packages/react/src/components/Button/BaseButton.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const noOutline: IRawStyle = {

const iconStyle = (fontSize?: string | number): IRawStyle => {
return {
fontSize: fontSize,
fontSize,
margin: '0 4px',
height: '16px',
lineHeight: '16px',
Expand Down Expand Up @@ -48,8 +48,6 @@ export const getStyles = memoizeFunction(
boxSizing: 'border-box',
cursor: 'pointer',
display: 'inline-block',
// This removes the 2px margin Safari adds to all buttons
margin: 0,
padding: '0 16px',
textDecoration: 'none',
textAlign: 'center',
Expand Down
Loading