Skip to content

Commit

Permalink
fix(fuselage): ToastBar remove close button from content alert (#1320)
Browse files Browse the repository at this point in the history
Co-authored-by: Júlia Jaeger Foresti <[email protected]>
  • Loading branch information
dougfabris and juliajforesti authored Mar 13, 2024
1 parent b37dd11 commit 06b1d57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-socks-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/fuselage": patch
---

fix(fuselage): `ToastBar` remove close button from content alert
5 changes: 3 additions & 2 deletions packages/fuselage/src/components/ToastBar/ToastBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export function ToastBar({
time = 5,
id,
onClose,
buttonLabel = 'Close',
...props
}: ToastBarProps) {
const iconName =
Expand Down Expand Up @@ -74,6 +73,7 @@ export function ToastBar({
elevation='2nb'
borderRadius='x4'
role='alert'
aria-labelledby={toastId}
{...props}
>
<div className='rcx-toastbar_inner'>
Expand All @@ -91,7 +91,8 @@ export function ToastBar({
tiny
onClick={() => onClose(toastId)}
icon='cross'
aria-label={buttonLabel}
tabIndex={-1}
aria-hidden
/>
</div>
)}
Expand Down

0 comments on commit 06b1d57

Please sign in to comment.