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

A11y improvements #130

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react/core/src/exports/AiChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const AiChat: <AiMsg>(
userDefinedGreeting={uiOverrides.Greeting}
/>
</div>
<div className="nlux-conversation-container" ref={conversationContainerRef}>
<div className="nlux-conversation-container" ref={conversationContainerRef} aria-label="Chat conversation" role="log">
<ForwardConversationComp
ref={conversationRef}
segments={segments}
Expand Down
3 changes: 3 additions & 0 deletions packages/react/core/src/sections/Composer/ComposerComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ export const ComposerComp = (props: ComposerProps) => {
value={props.prompt}
onChange={handleChange}
onKeyDown={handleKeyDown}
aria-label={props.placeholder}
/>
{!showCancelButton && (
<button
tabIndex={0}
disabled={disableButton}
onClick={() => props.onSubmit()}
aria-label="Send"
>
{showSendIcon && <SendIconComp/>}
{!showSendIcon && props.Loader}
Expand All @@ -93,6 +95,7 @@ export const ComposerComp = (props: ComposerProps) => {
<button
tabIndex={0}
onClick={props.onCancel}
aria-label="Cancel"
>
<CancelIconComp/>
</button>
Expand Down
Loading