Skip to content

Commit da41740

Browse files
committed
add: provide suffixed id on ProConnect button element
1 parent d082a02 commit da41740

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ProConnectButton.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ export const ProConnectButton = memo(
5353
style={style}
5454
ref={ref}
5555
>
56-
<Inner className={cx(fr.cx("fr-btn", "fr-connect"), "pro-connect")} {...innerProps}>
56+
<Inner
57+
id={`${id}-button`}
58+
className={cx(fr.cx("fr-btn", "fr-connect"), "pro-connect")}
59+
{...innerProps}
60+
>
5761
<span className={cx(fr.cx("fr-connect__login"), classes.login)}>
5862
S’identifier avec
5963
</span>

0 commit comments

Comments
 (0)