Skip to content

Commit

Permalink
Merge pull request #153 from brainstormforce/uat_final_fixes
Browse files Browse the repository at this point in the history
SUR-310 - alert button type change, and select text size change
  • Loading branch information
vrundakansara authored Oct 17, 2024
2 parents da90bcd + 17fb0c0 commit 4d556b1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/alert/alert.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const WithAction = {
action: {
label: 'My Action',
onClick: () => {},
type: 'button',
type: 'link',
},
},
};
Expand Down
10 changes: 5 additions & 5 deletions src/components/select/component-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ export const sizeClassNames = {
icon: '[&>svg]:size-4',
searchIcon: '[&>svg]:size-4',
selectButton:
'px-2.5 py-2 rounded text-xs font-medium leading-4 min-h-[2rem]',
'px-2.5 py-2 rounded text-sm font-medium leading-4 min-h-[2rem]',
multiSelect: 'pl-2 pr-2 py-1.5',
displaySelected: 'text-xs font-normal',
displaySelected: 'text-sm font-normal',
dropdown: 'rounded-md',
dropdownItemsWrapper: 'p-1.5',
searchbarWrapper: 'p-3 flex items-center gap-0.5',
searchbar: 'font-medium text-xs',
searchbar: 'font-medium text-sm',
searchbarIcon: '[&>svg]:size-4',
label: 'text-xs font-medium',
label: 'text-sm font-medium',
},
md: {
icon: '[&>svg]:size-5',
Expand All @@ -33,7 +33,7 @@ export const sizeClassNames = {
selectButton:
'px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]',
multiSelect: 'pl-2.5 pr-3 py-2.5',
displaySelected: 'text-sm font-normal',
displaySelected: 'text-base font-normal',
dropdown: 'rounded-lg',
dropdownItemsWrapper: 'p-2',
searchbarWrapper: 'p-2.5 flex items-center gap-1',
Expand Down
11 changes: 7 additions & 4 deletions src/components/select/select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,14 @@ function SelectOptions( {
<div
ref={ refs.setFloating }
className={ cn(
'box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle overflow-hidden',
'box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle',
combobox &&
'grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle',
sizeClassNames[ sizeValue ].dropdown,
! combobox && 'h-full',
! combobox && 'h-auto',
! combobox
? 'overflow-y-auto'
: 'overflow-hidden',
className
) }
style={ {
Expand Down Expand Up @@ -441,12 +444,12 @@ function SelectItem( { value, selected, children, className, ...props } ) {

const selectItemClassNames = {
sm: 'py-1.5 px-2 text-sm font-normal',
md: 'p-2 text-base font-normal',
md: 'p-2 text-sm font-normal',
lg: 'p-2 text-base font-normal',
};
const selectedIconClassName = {
sm: 'size-4',
md: 'size-5',
md: 'size-4',
lg: 'size-5',
};

Expand Down

0 comments on commit 4d556b1

Please sign in to comment.