mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
Merge pull request #21955 from overleaf/rd-bs5-loading-button
Buttons should not be interactive when they are disabled GitOrigin-RevId: 2b8b1e8b317dc3b62200b48dac66df7eff8a7268
This commit is contained in:
@@ -50,6 +50,8 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
variant={variant}
|
||||
{...props}
|
||||
ref={ref}
|
||||
disabled={isLoading || props.disabled}
|
||||
data-ol-loading={isLoading}
|
||||
>
|
||||
{isLoading && (
|
||||
<span className="spinner-container">
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
color: var(--bs-btn-color);
|
||||
background-color: var(--bs-btn-bg);
|
||||
border-color: var(--bs-btn-border-color);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user