Skip to content

Commit d5dd34d

Browse files
iNeoOddecrulle
andauthored
feat: set possible to override role props on Alert (#457)
* feat: set possible to override role props on Alert * keep alert as default role --------- Co-authored-by: Dylan Decrulle <[email protected]>
1 parent 80dad87 commit d5dd34d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Alert.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const Alert = memo(
148148
)}
149149
style={style}
150150
{...(refShouldSetRole.current && { "role": role })}
151+
{...(role ? { "role": role } : {})}
151152
ref={ref}
152153
{...rest}
153154
>

0 commit comments

Comments
 (0)