Skip to content

Commit

Permalink
Merge pull request #112 from WestpacGEL/fix/102-selector-font-weight-…
Browse files Browse the repository at this point in the history
…of-label-responsive-padding-maybe-it-is-connected-to-flexi-cell

fix(#102): selector font weight padding
  • Loading branch information
samithaf authored Oct 11, 2023
2 parents 5d73d8c + 29ddfa5 commit ec78adc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { SelectorLabel } from './selector-label.component.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';

import { FlexiCellLabel, FlexiCellLabelProps } from '../../../../components/flexi-cell/index.js';

import { styles } from './selector-label.styles.js';

export function SelectorLabel({ className, ...props }: FlexiCellLabelProps) {
return <FlexiCellLabel {...props} className={styles({ className })} />;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { tv } from 'tailwind-variants';

export const styles = tv({
base: 'font-medium',
});
4 changes: 2 additions & 2 deletions packages/ui/src/components/selector/selector.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
FlexiCellCircle,
FlexiCellFooter,
FlexiCellHint,
FlexiCellLabel,
} from '../flexi-cell/components/index.js';

import { SelectorCheckboxGroup, SelectorRadioGroup } from './components/index.js';
import { SelectorCheckboxGroupOption } from './components/selector-checkbox-group/components/index.js';
import { SelectorLabel } from './components/selector-label/index.js';
import { SelectorRadioGroupOption } from './components/selector-radio-group/components/index.js';
import { type SelectorProps } from './selector.types.js';

Expand All @@ -29,6 +29,6 @@ Selector.Body = FlexiCellBody;
Selector.Footer = FlexiCellFooter;
Selector.Adornment = FlexiCellAdornment;
Selector.Hint = FlexiCellHint;
Selector.Label = FlexiCellLabel;
Selector.Label = SelectorLabel;
Selector.Button = FlexiCellButton;
Selector.Circle = FlexiCellCircle;

0 comments on commit ec78adc

Please sign in to comment.