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,9 @@
{
"changes": [{
"packageName": "office-ui-fabric-react",
"comment": "Only apply 'pointer-events: none' to disabled Link components if there is an href ",
"type": "patch"
}],
"packageName": "office-ui-fabric-react",
"email": "cohoov@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ export const getStyles = (props: ILinkStyleProps): ILinkStyles => {
'is-disabled',
{
color: semanticColors.disabledText,
cursor: 'default',
pointerEvents: 'none'
cursor: 'default'
},
{
selectors: {
'&:link, &:visited': {
pointerEvents: 'none'
}
}
}
],
!isDisabled && {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ exports[`Link renders disabled Link correctly 1`] = `
color: #a6a6a6;
cursor: default;
outline: transparent;
pointer-events: none;
position: relative;
text-decoration: none;
}
Expand All @@ -162,6 +161,9 @@ exports[`Link renders disabled Link correctly 1`] = `
top: 1px;
z-index: 1;
}
&:link, &:visited {
pointer-events: none;
}
href="#"
onClick={[Function]}
target={undefined}
Expand Down Expand Up @@ -193,7 +195,6 @@ exports[`Link renders disabled Link with no href as a button correctly 1`] = `
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
pointer-events: none;
position: relative;
text-align: left;
text-overflow: inherit;
Expand All @@ -215,6 +216,9 @@ exports[`Link renders disabled Link with no href as a button correctly 1`] = `
@media screen and (-ms-high-contrast: active){& {
color: Highlight;
}
&:link, &:visited {
pointer-events: none;
}
disabled={true}
onClick={[Function]}
>
Expand Down