Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separating border:none from .cell and removing from .root to avoid style override in DetailsColumn #7211

Merged
merged 6 commits into from
Dec 5, 2018
Merged
Show file tree
Hide file tree
Changes from 5 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,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "DetailsList: Prevent override of column cell border while dragging",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,9 @@ export const getStyles = (props: IDetailsColumnStyleProps): IDetailsColumnStyles

borderWhileDragging: [
{
selectors: {
'.ms-DetailsHeader &.ms-DetailsHeader-cell': {
borderStyle: 'solid',
borderWidth: 1,
borderColor: palette.themePrimary
}
}
borderStyle: 'solid',
borderWidth: 1,
borderColor: palette.themePrimary
}
]
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const getCellStyles = (props: { theme: ITheme; cellStyleProps?: ICellStyl
display: 'inline-block',
boxSizing: 'border-box',
padding: `0 ${cellStyleProps.cellRightPadding}px 0 ${cellStyleProps.cellLeftPadding}px`,
border: 'none',
lineHeight: 'inherit',
margin: '0',
height: values.rowHeight,
Expand Down Expand Up @@ -151,7 +150,8 @@ export const getStyles = (props: IDetailsHeaderStyleProps): IDetailsHeaderStyles
padding: 0,
margin: 0,
display: 'inline-flex',
alignItems: 'center'
alignItems: 'center',
border: 'none'
},
isAllSelected && {
opacity: 1
Expand All @@ -163,7 +163,8 @@ export const getStyles = (props: IDetailsHeaderStyleProps): IDetailsHeaderStyles
{
paddingLeft: '8px',
paddingRight: '8px',
width: '36px'
width: '36px',
border: 'none'
}
],

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ exports[`DetailsHeader can render 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -456,7 +455,6 @@ exports[`DetailsHeader can render 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -668,7 +666,6 @@ exports[`DetailsHeader can render 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1138,7 +1135,6 @@ exports[`DetailsHeader renders accessible labels 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1328,7 +1324,6 @@ exports[`DetailsHeader renders accessible labels 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1565,7 +1560,6 @@ exports[`DetailsHeader renders accessible labels 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ exports[`DetailsList renders List correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -894,7 +893,6 @@ exports[`DetailsList renders List correctly with onRenderDivider props 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1050,7 +1048,6 @@ exports[`DetailsList renders List correctly with onRenderDivider props 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1206,7 +1203,6 @@ exports[`DetailsList renders List correctly with onRenderDivider props 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1362,7 +1358,6 @@ exports[`DetailsList renders List correctly with onRenderDivider props 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1518,7 +1513,6 @@ exports[`DetailsList renders List correctly with onRenderDivider props 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -2068,7 +2062,6 @@ exports[`DetailsList renders List in compact mode correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -2651,7 +2644,6 @@ exports[`DetailsList renders List in fixed constrained layout correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -2840,7 +2832,6 @@ exports[`DetailsList renders List in fixed constrained layout correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -3029,7 +3020,6 @@ exports[`DetailsList renders List in fixed constrained layout correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -3611,7 +3601,6 @@ exports[`DetailsList renders List with custom icon as column divider 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -3770,7 +3759,6 @@ exports[`DetailsList renders List with custom icon as column divider 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -3929,7 +3917,6 @@ exports[`DetailsList renders List with custom icon as column divider 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -4088,7 +4075,6 @@ exports[`DetailsList renders List with custom icon as column divider 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -4247,7 +4233,6 @@ exports[`DetailsList renders List with custom icon as column divider 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -4655,7 +4640,6 @@ exports[`DetailsList renders List with hidden checkboxes correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ exports[`DetailsRow renders details list row correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -445,7 +444,6 @@ exports[`DetailsRow renders details list row correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -578,7 +576,6 @@ exports[`DetailsRow renders details list row correctly 1`] = `
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1124,7 +1121,6 @@ exports[`DetailsRow renders details list row with all rows selected correctly 1`
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1257,7 +1253,6 @@ exports[`DetailsRow renders details list row with all rows selected correctly 1`
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -1390,7 +1385,6 @@ exports[`DetailsRow renders details list row with all rows selected correctly 1`
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -2470,7 +2464,6 @@ exports[`DetailsRow renders details list row with multiple selections correctly
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -2603,7 +2596,6 @@ exports[`DetailsRow renders details list row with multiple selections correctly
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -2736,7 +2728,6 @@ exports[`DetailsRow renders details list row with multiple selections correctly
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -3282,7 +3273,6 @@ exports[`DetailsRow renders details list row with one row selected correctly 1`]
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -3415,7 +3405,6 @@ exports[`DetailsRow renders details list row with one row selected correctly 1`]
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down Expand Up @@ -3548,7 +3537,6 @@ exports[`DetailsRow renders details list row with one row selected correctly 1`]
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
border: none;
box-sizing: border-box;
color: #333333;
display: inline-block;
Expand Down