Skip to content
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

[@mantine/core] Radio: fix labelWrapper styles #2661

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/mantine-core/src/Radio/Radio.styles.ts
Expand Up @@ -118,6 +118,8 @@ export default createStyles(

labelWrapper: {
...theme.fn.fontStyles(),
display: 'flex',
alignItems: 'flex-start',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, it would be "center", not flex-start, it's weird I guess.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense. I just changed it to how it was before these properties were removed

fontSize: theme.fontSizes[size] || theme.fontSizes.md,
lineHeight: `${theme.fn.size({ sizes, size })}px`,
color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.black,
Expand Down
2 changes: 2 additions & 0 deletions src/mantine-core/src/Switch/Switch.styles.ts
Expand Up @@ -178,6 +178,8 @@ export default createStyles(

labelWrapper: {
...theme.fn.fontStyles(),
display: 'flex',
alignItems: 'flex-start',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the same there

WebkitTapHighlightColor: 'transparent',
fontSize: theme.fn.size({ size, sizes: theme.fontSizes }),
fontFamily: theme.fontFamily,
Expand Down