Skip to content

Commit

Permalink
Cherry picked from 7.0 branch: reducing ChoiceGroup radio button to 1…
Browse files Browse the repository at this point in the history
…8px (#22230)
  • Loading branch information
Jacqueline-ms authored Mar 29, 2022
1 parent f2ce28f commit 7562094
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Cherry picked from 7.0 branch: reducing choicegroup radio button to 18px from 20px",
"packageName": "@fluentui/azure-themes",
"email": "[email protected]",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions packages/azure-themes/src/azure/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const fontFamily =
export const fontWeightRegular = '400';
export const fontWeightBold = '700';
export const inputControlHeight = '24px';
export const choiceGroupDimensions = '18px';
export const inputControlPadding = '12px';
export const inputControlHeightInner = '20px';
export const textAlignCenter = 'center';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const ChoiceGroupOptionStyles = (props: IChoiceGroupOptionStyleProps): Pa
// The circle
':before': [
{
width: StyleConstants.choiceGroupDimensions,
height: StyleConstants.choiceGroupDimensions,
borderColor: semanticColors.bodyText,
},
checked && {
Expand All @@ -57,6 +59,8 @@ export const ChoiceGroupOptionStyles = (props: IChoiceGroupOptionStyleProps): Pa
':after': [
{
borderColor: extendedSemanticColors.checkboxBorderChecked,
top: 4,
left: 4,
},
checked &&
disabled && {
Expand All @@ -78,6 +82,8 @@ export const ChoiceGroupOptionStyles = (props: IChoiceGroupOptionStyleProps): Pa
':after': {
borderColor: extendedSemanticColors.checkboxBorderChecked,
backgroundColor: extendedSemanticColors.choiceGroupUncheckedDotHover,
top: 4,
left: 4,
},
},
},
Expand Down

0 comments on commit 7562094

Please sign in to comment.