Skip to content

Commit

Permalink
normalise classes to PascalCase (#5153)
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus authored Oct 18, 2024
1 parent c1bec02 commit 65f6437
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/Button/ButtonBase.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@

&:where([data-loading='true']) {
&
.loadingSpinner:not(
.LoadingSpinner:not(
[data-component='leadingVisual'],
[data-component='trailingVisual'],
[data-component='trailingAction']
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Button/ButtonBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const renderModuleVisual = (
) => (
<span
data-component={visualName}
className={clsx(!counterLabel && classes.Visual, loading ? classes.loadingSpinner : classes.VisualWrap)}
className={clsx(!counterLabel && classes.Visual, loading ? classes.LoadingSpinner : classes.VisualWrap)}
>
{loading ? <Spinner size="small" /> : isElement(Visual) ? Visual : <Visual />}
</span>
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(
<Box
as="input"
{...inputProps}
className={clsx(className, sharedClasses.input, classes.Checkbox)}
className={clsx(className, sharedClasses.Input, classes.Checkbox)}
sx={sxProp}
/>
)
}
return <input {...inputProps} className={clsx(className, sharedClasses.input, classes.Checkbox)} />
return <input {...inputProps} className={clsx(className, sharedClasses.Input, classes.Checkbox)} />
}

return <StyledCheckbox {...inputProps} className={className} sx={sxProp} />
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Checkbox/shared.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.input {
.Input {
position: relative;
display: grid;
width: var(--base-size-16);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.component {
.Component {
width: fit-content;
/* stylelint-disable-next-line primer/spacing */
padding: var(--control-xsmall-paddingBlock) var(--control-xsmall-paddingInline-normal);
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/experimental/CSSComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import {clsx} from 'clsx'
import classNames from './component.module.css'

export const Component: React.FC<React.HTMLProps<HTMLDivElement>> = ({className, ...props}) => {
return <div className={clsx(classNames.component, className)} {...props} />
return <div className={clsx(classNames.Component, className)} {...props} />
}

0 comments on commit 65f6437

Please sign in to comment.