Skip to content

Commit

Permalink
feat(toast): update opacity of auto hide progress bar in Toast (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuradha9712 authored Dec 5, 2024
1 parent 56395e0 commit e0bf8d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/alertService/alertComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const AlertComponent = (props: AlertProps) => {
}, [width]);

const className = `${wrapClassName} Toast--${appearance} alertService-${direction}`;
const autoHideBarOpacity = appearance === 'info' ? 'rgb(0,0,0,50%)' : 'rgb(0,0,0,40%)';
const autoHideBarOpacity = 'rgb(0,0,0,48%)';
return (
<div
id={wrapId}
Expand Down
2 changes: 1 addition & 1 deletion src/services/alertService/alertService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const defaultConf = {
height: '4px',
borderTopRightRadius: '2px',
borderBottomRightRadius: '2px',
backgroundColor: 'rgb(0,0,0,40%)'
backgroundColor: 'rgb(0,0,0,48%)'
}
},
position: 'left',
Expand Down

0 comments on commit e0bf8d1

Please sign in to comment.