Improvement to OLButton loading labels (#28659)
* Create eslint rule for requiring loadingLabel prop when isLoading is specified on OLButton * Add `loadingLabel` props for OLButton components with `isLoading` * Clarify loading label and button loading state GitOrigin-RevId: 89279d5b4c346f9c3b67a59d0db822a2ff04314a
This commit is contained in:
@@ -78,7 +78,11 @@ function RegisterForm({
|
||||
lg={4}
|
||||
className="mt-3 mt-lg-0 d-flex align-items-center flex-column flex-lg-row"
|
||||
>
|
||||
<OLButton type="submit" isLoading={isLoading}>
|
||||
<OLButton
|
||||
type="submit"
|
||||
isLoading={isLoading}
|
||||
loadingLabel={t('registering')}
|
||||
>
|
||||
Register
|
||||
</OLButton>
|
||||
</OLCol>
|
||||
|
||||
Reference in New Issue
Block a user