mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Used determenistic id for the button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
453f9926c8
commit
db91458a52
@ -42,7 +42,7 @@ export function UpdateButton({ warningLevel, update }: UpdateButtonProps) {
|
||||
<>
|
||||
<button
|
||||
data-testid="update-button"
|
||||
id={id}
|
||||
id="update-lens-button"
|
||||
className={cssNames(styles.updateButton, {
|
||||
[styles.warningHigh]: warningLevel === "high",
|
||||
[styles.warningMedium]: warningLevel === "medium",
|
||||
@ -55,7 +55,7 @@ export function UpdateButton({ warningLevel, update }: UpdateButtonProps) {
|
||||
</button>
|
||||
<Menu
|
||||
usePortal
|
||||
htmlFor={id}
|
||||
htmlFor="update-lens-button"
|
||||
isOpen={opened}
|
||||
close={toggle}
|
||||
open={noop}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user