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,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Checkbox: label text should be selectable, but not the checkmark icons.",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const getStyles = memoizeFunction((
alignItems: 'center',
cursor: 'pointer',
position: 'relative',
userSelect: 'none',
textAlign: 'left'
},
labelReversed: {
Expand All @@ -73,6 +72,7 @@ export const getStyles = memoizeFunction((
transitionProperty: 'background, border, border-color',
transitionDuration: MS_CHECKBOX_TRANSITION_DURATION,
transitionTimingFunction: MS_CHECKBOX_TRANSITION_TIMING,
userSelect: 'none',

/* incase the icon is bigger than the box */
overflow: 'hidden'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ exports[`Checkbox renders Checkbox correctly 1`] = `
margin-top: 0;
position: relative;
text-align: left;
user-select: none;
}
htmlFor="checkbox-0"
>
Expand All @@ -101,6 +100,7 @@ exports[`Checkbox renders Checkbox correctly 1`] = `
transition-duration: 200ms;
transition-property: background, border, border-color;
transition-timing-function: cubic-bezier(.4, 0, .23, 1);
user-select: none;
width: 20px;
}
>
Expand Down