Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(button,card,fab,inline-editable): provides context to AT users when loading #7257

Merged
merged 10 commits into from
Aug 15, 2023
3 changes: 2 additions & 1 deletion packages/calcite-components/src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ export class Button

return (
<Tag
aria-label={getLabelText(this)}
aria-label={!this.loading ? getLabelText(this) : this.messages.loading}
aria-live="polite"
class={{
[CSS.buttonPadding]: noStartEndIcons,
[CSS.buttonPaddingShrunk]: !noStartEndIcons,
Expand Down
3 changes: 2 additions & 1 deletion packages/calcite-components/src/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export class Card implements ConditionalSlotComponent, LocalizedComponent, T9nCo
render(): VNode {
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
const thumbnailStart = this.thumbnailPosition.endsWith("start");

return (
<div class={{ "calcite-card-container": true, inline: thumbnailInline }}>
{this.loading ? (
<div class="calcite-card-loader-container">
<div aria-live="polite" class="calcite-card-loader-container">
<calcite-loader label={this.messages.loading} />
</div>
) : null}
Expand Down