Skip to content

Commit

Permalink
Merge pull request #227 from hirotomoyamada/fix/bem/classname-number-…
Browse files Browse the repository at this point in the history
…input-and-native-select

Changed className NumberInput and NativeSelect
  • Loading branch information
hirotomoyamada authored Nov 7, 2023
2 parents 99a44d2 + 73abed8 commit 8bbe644
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-ties-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@yamada-ui/number-input': patch
---

Changed `className` in `NumberInput`.
5 changes: 5 additions & 0 deletions .changeset/old-insects-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@yamada-ui/native-select': patch
---

Changed `className` in `NativeSelect`.
4 changes: 2 additions & 2 deletions packages/components/native-select/src/native-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const NativeSelect = forwardRef<NativeSelectProps, 'select'>(
>
<ui.select
ref={ref}
className={cx('ui-native-select-field', className)}
className={cx('ui-native-select__field', className)}
__css={{
paddingEnd: '2rem',
h: h ?? height,
Expand Down Expand Up @@ -216,7 +216,7 @@ const NativeSelectIcon: FC<NativeSelectIconProps> = ({

return (
<ui.div
className={cx('ui-native-select-icon', className)}
className={cx('ui-native-select__icon', className)}
__css={css}
{...rest}
>
Expand Down
8 changes: 4 additions & 4 deletions packages/components/number-input/src/number-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ const NumberInputField = forwardRef<NumberInputFieldProps, 'input'>(
return (
<ui.input
ref={ref}
className={cx('ui-number-input-field', className)}
className={cx('ui-number-input__field', className)}
__css={css}
{...rest}
/>
Expand Down Expand Up @@ -718,7 +718,7 @@ const NumberInputAddon = forwardRef<NumberInputAddonProps, 'div'>(
return (
<ui.div
ref={ref}
className={cx('ui-number-input-addon', className)}
className={cx('ui-number-input__addon', className)}
aria-hidden
__css={css}
{...rest}
Expand Down Expand Up @@ -751,7 +751,7 @@ const NumberIncrementStepper = forwardRef<NumberIncrementStepperProps, 'div'>(

return (
<Stepper
className={cx('ui-number-input-stepper', className)}
className={cx('ui-number-input__stepper--up', className)}
{...getIncrementProps(rest, ref)}
__css={css}
>
Expand All @@ -771,7 +771,7 @@ const NumberDecrementStepper = forwardRef<NumberDecrementStepperProps, 'div'>(

return (
<Stepper
className={cx('ui-number-input-stepper', className)}
className={cx('ui-number-input__stepper--down', className)}
{...getDecrementProps(rest, ref)}
__css={css}
>
Expand Down

0 comments on commit 8bbe644

Please sign in to comment.