fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Allow customization of ChoiceGroup styles

Open nappy opened this issue 8 years ago • 6 comments

The ChoiceGroup component should accept a styles prop, allowing to override internal styles (such as root, choiceField, choiceFieldWrapper etc.) like the CheckBox component does. Ideally for each field individually as well.

Currently, its not possible to change for example the the margins between the fields. Also I am having the issue that I cant make the wrapper 100% width for my use case.

nappy avatar Feb 02 '18 10:02 nappy

+1 same issue in my case.

hungdluit avatar Feb 15 '18 14:02 hungdluit

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!

stale[bot] avatar Apr 11 '18 04:04 stale[bot]

Since this is still an issue for me, I pleasantly provide some activity. ;)

nappy avatar Apr 11 '18 16:04 nappy

I have just started work on passing styles to choiceGroup. Hope to have a PR out soon.

manubamba avatar Apr 24 '18 09:04 manubamba

That's awesome @manubamba! Although heads-up--I believe someone here (not sure of their GitHub alias) is working on converting ChoiceGroup to mergeStyles, which should help here. Also adding @srideshpande as ChoiceGroup codeowner.

Jahnp avatar Apr 25 '18 18:04 Jahnp

Confirmed, it sounds like @FalseLobster is working on this.

Jahnp avatar Apr 25 '18 19:04 Jahnp