Skip to content

Commit

Permalink
Merge pull request coralproject#4206 from coralproject/fix/CORL-2731-…
Browse files Browse the repository at this point in the history
…add-a-message-screen-reader-pronunciation

[CORL-2731] Add a message screen reader fix
  • Loading branch information
tessalt authored May 23, 2023
2 parents 656058d + 9cbe95e commit 771fa02
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const AddMessageClosed: FunctionComponent<Props> = ({
disabled={disableButton}
upperCase
data-testid="configure-addMessage"
aria-label="Add message"
>
Add message
</Button>
Expand Down
26 changes: 14 additions & 12 deletions src/core/client/stream/tabs/Configure/AddMessage/AddMessageOpen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,21 @@ const AddMessageOpen: FunctionComponent<Props> = ({
>
<Localized id="configure-addMessage-cancel">Cancel</Localized>
</Button>
<Button
className={CLASSES.configureCommentStream.applyButton}
color="primary"
variant="filled"
type="submit"
disabled={submitting || pristine}
upperCase
data-testid="configure-addMessage-submitAdd"
>
<Localized id="configure-addMessage-submitAdd">
<Localized id="configure-addMessage-submitAdd">
<Button
className={CLASSES.configureCommentStream.applyButton}
color="primary"
variant="filled"
type="submit"
disabled={submitting || pristine}
upperCase
data-testid="configure-addMessage-submitAdd"
aria-label="Add message"
>
Add message
</Localized>
</Button>
</Button>
</Localized>

{renderSuccess}
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ to pose a topic, ask a question or make announcements relating to this
story.
</div>
<button
aria-label="Add message"
class="BaseButton-root Button-base Button-filled Button-fontSizeSmall Button-textAlignCenter Button-fontFamilyPrimary Button-fontWeightPrimaryBold Button-paddingSizeSmall Button-colorSecondary Button-upperCase coral coral-openCommentStream-openButton"
data-testid="configure-addMessage"
data-variant="filled"
Expand Down

0 comments on commit 771fa02

Please sign in to comment.