-
Notifications
You must be signed in to change notification settings - Fork 170
RadioGroup Style Fixes #2552
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
Merged
Merged
RadioGroup Style Fixes #2552
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
ad07d31
changed transparentStroke token to background to fix HC border bug
gulnazsayed f41555a
matched subtext bottom margin to label top margin
gulnazsayed 4de34ba
Merge branch 'microsoft:main' into radiogroup/fixes
gulnazsayed f5e8b24
updated margin between labels
gulnazsayed 17b8775
Change files
gulnazsayed 8a782a8
text margin adjustment
gulnazsayed 65539e6
code cleanup
gulnazsayed ce3586f
code cleanup
gulnazsayed ee11d5a
fixed horizontal-stacked alignment and focus rect
gulnazsayed 63943d7
code cleanup
gulnazsayed f939a99
replaced labelMarginTop with labelMarginVertical
gulnazsayed d057d49
made win32 specific tokens
gulnazsayed 3925b55
implementing new indicator for win32
gulnazsayed 8c7680d
Merge branch 'microsoft:main' into radiogroup/fixes
gulnazsayed 873e37f
resolved merge conflicts:
gulnazsayed 23fb6e3
fixed merge conflict:
gulnazsayed dbfa7cf
Merge branch 'microsoft:main' into radiogroup/fixes
gulnazsayed 38c0a22
fixed pressed state bug
gulnazsayed a9b6b7a
Change files
gulnazsayed 1fe68c0
Update @fluentui-react-native-tester-40bf90bc-8cef-42c0-9e71-e0f8601e…
gulnazsayed b138379
Merge branch 'microsoft:main' into radiogroup/fixes
gulnazsayed 7455dba
added dependency for text margin adjustment
gulnazsayed 721e07b
Merge branch 'main' into radiogroup/fixes
gulnazsayed 6181858
fixed padding issue for horizontal
gulnazsayed a34c3fb
fixed merge conflict
gulnazsayed 1e25a8c
Update package.json
gulnazsayed 818bf1a
added empty line
gulnazsayed f1c900c
fixed imports and added labelPadding
gulnazsayed 544ddd1
replaced spec images
gulnazsayed 722d412
Merge branch 'microsoft:main' into radiogroup/fixes
gulnazsayed 7c1924f
Merge branch 'microsoft:main' into radiogroup/fixes
gulnazsayed 72aa473
fixed focus border and spacing
gulnazsayed 470a4a1
Merge branch 'radiogroup/fixes' of https://github.com/gulnazsayed/flu…
gulnazsayed 0c25f33
removed enableFocusRing
gulnazsayed 950103c
updated spec
gulnazsayed 0770e34
updated snapshots and removed enableFocusRing from useRadio
gulnazsayed a2dd41f
removed enableFocusRing from win32 useRadio
gulnazsayed 2948cf1
added enableFocusRing prop from other platforms
gulnazsayed e0fa2ae
reverted back to transparentStroke token
gulnazsayed 6a779d9
added tokens for radio size
gulnazsayed f06377a
updated snapshots
gulnazsayed f00c0ef
Merge branch 'microsoft:main' into radiogroup/fixes
gulnazsayed e20e2e9
Merge branch 'microsoft:main' into radiogroup/fixes
gulnazsayed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...@fluentui-react-native-experimental-radio-group-a3ba623f-13c9-4e3d-8dac-8564b0f79a2e.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "patch", | ||
| "comment": "polish bug fixes", | ||
| "packageName": "@fluentui-react-native/experimental-radio-group", | ||
| "email": "gulnazsayed@microsoft.com", | ||
| "dependentChangeType": "patch" | ||
| } |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-native-tester-40bf90bc-8cef-42c0-9e71-e0f8601e330b.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "patch", | ||
| "comment": "polish bug fixes", | ||
| "packageName": "@fluentui-react-native/tester", | ||
| "email": "gulnazsayed@microsoft.com", | ||
| "dependentChangeType": "patch" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-557 Bytes
(90%)
packages/experimental/RadioGroup/assets/controlled_radiogroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-392 Bytes
(91%)
packages/experimental/RadioGroup/assets/disabled_radiogroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-398 Bytes
(91%)
packages/experimental/RadioGroup/assets/horizontal_radiogroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-226 Bytes
(95%)
packages/experimental/RadioGroup/assets/horizontal_stacked_radiogroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-520 Bytes
(90%)
packages/experimental/RadioGroup/assets/required_radiogroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-97 Bytes
(98%)
packages/experimental/RadioGroup/assets/subtext_radiogroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-637 Bytes
(91%)
packages/experimental/RadioGroup/assets/uncontrolled_radiogroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
packages/experimental/RadioGroup/src/Radio/RadioTokens.win32.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| import type { Theme } from '@fluentui-react-native/framework'; | ||
| import { globalTokens } from '@fluentui-react-native/theme-tokens'; | ||
| import type { TokenSettings } from '@fluentui-react-native/use-styling'; | ||
|
|
||
| import type { RadioTokens } from './Radio.types'; | ||
|
|
||
| export const defaultRadioTokens: TokenSettings<RadioTokens, Theme> = (t: Theme) => | ||
| ({ | ||
| rootHorizontalPadding: globalTokens.size40, | ||
| borderColor: t.colors.transparentStroke, | ||
| borderStyle: 'solid', | ||
| borderWidth: globalTokens.stroke.width20, | ||
| borderRadius: globalTokens.corner.radius40, | ||
| radioBorderWidth: globalTokens.stroke.width10, | ||
| radioVisibility: 0, | ||
| variant: 'subheaderStandard', | ||
| radioBorderStyle: 'solid', | ||
| radioBorder: t.colors.neutralStrokeAccessible, | ||
| color: t.colors.neutralForeground1, | ||
| radioOuterCircleSize: globalTokens.size160, | ||
| radioInnerCircleSize: globalTokens.size80, | ||
| radioOuterCircleBackground: t.colors.neutralBackground1, | ||
| labelMarginVertical: globalTokens.size20, | ||
| labelMarginRight: globalTokens.sizeNone, | ||
| labelMarginLeft: globalTokens.sizeNone, | ||
| subtextVariant: 'caption1', | ||
| subtextMarginTop: globalTokens.sizeNone, | ||
| subtextMarginBottom: globalTokens.size40 + 1, | ||
| marginTop: globalTokens.size60, | ||
| marginRight: globalTokens.size40, | ||
| marginBottom: globalTokens.size60, | ||
| marginLeft: globalTokens.size40, | ||
| flexDirection: 'row', | ||
| alignItems: 'flex-start', | ||
| labelAlignItems: 'flex-start', | ||
|
|
||
| labelPositionBelow: { | ||
| flexDirection: 'column', | ||
| alignItems: 'center', | ||
| labelAlignItems: 'center', | ||
| labelMarginRight: globalTokens.sizeNone, | ||
| labelMarginVertical: globalTokens.size20, | ||
| labelPadding: globalTokens.size20, | ||
| marginLeft: globalTokens.size60, | ||
| marginRight: globalTokens.size60, | ||
| }, | ||
|
|
||
| disabled: { | ||
| // Unchecked, Disabled | ||
| radioOuterCircleBackground: t.colors.neutralBackgroundDisabled, | ||
| radioBorder: t.colors.neutralStrokeDisabled, | ||
| color: t.colors.neutralForegroundDisabled, | ||
| radioVisibility: 0, | ||
| }, | ||
|
|
||
| hovered: { | ||
| // Unchecked, Hover | ||
| radioOuterCircleBackground: t.colors.neutralBackground1, | ||
| radioBorder: t.colors.neutralStrokeAccessibleHover, | ||
| color: t.colors.neutralForeground1, | ||
|
|
||
| selected: { | ||
| // Checked, Hover | ||
| radioOuterCircleBackground: t.colors.brandBackgroundHover, | ||
| radioBorder: t.colors.compoundBrandStroke1Hover, | ||
| radioFill: t.colors.neutralForegroundOnBrand, | ||
| color: t.colors.neutralForeground1, | ||
| radioVisibility: 1, | ||
| radioInnerCircleSize: 10, | ||
| }, | ||
| }, | ||
|
|
||
| pressed: { | ||
| // Unchecked, Pressed | ||
| radioOuterCircleBackground: t.colors.neutralBackground1, | ||
| radioBorder: t.colors.neutralStrokeAccessiblePressed, | ||
| color: t.colors.neutralForeground1, | ||
|
|
||
| selected: { | ||
| // Checked, Pressed | ||
| radioOuterCircleBackground: t.colors.brandBackgroundPressed, | ||
| radioBorder: t.colors.compoundBrandStroke1Pressed, | ||
| radioFill: t.colors.neutralForegroundOnBrand, | ||
| color: t.colors.neutralForeground1, | ||
| radioVisibility: 1, | ||
| radioInnerCircleSize: 6, | ||
| }, | ||
| }, | ||
|
|
||
| focused: { | ||
| borderColor: t.colors.strokeFocus2, | ||
| selected: { | ||
| // Checked, Focused | ||
| radioVisibility: 1, | ||
| }, | ||
| }, | ||
|
|
||
| selected: { | ||
| // Checked, Rest | ||
| radioOuterCircleBackground: t.colors.brandBackground, | ||
| radioBorder: t.colors.compoundBrandStroke1, | ||
| radioFill: t.colors.neutralForegroundOnBrand, | ||
| color: t.colors.neutralForeground1, | ||
| radioVisibility: 1, | ||
|
|
||
| disabled: { | ||
| // Checked, Disabled | ||
| radioFill: t.colors.neutralForegroundDisabled, | ||
| }, | ||
| }, | ||
| } as RadioTokens); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.