Repository navigation
Conversation
|
Build successful! 🎉 |
|
Build successful! 🎉 |
## API Changes
@react-spectrum/ai/@react-spectrum/ai:AttachmentList AttachmentList <T> {
aria-describedby?: string
aria-details?: string
aria-label?: string
aria-labelledby?: string
children?: ReactNode | (T) => ReactNode
dependencies?: ReadonlyArray<any>
disabledKeys?: Iterable<Key>
id?: string
items?: Iterable<T>
+ onAction?: (Key) => void
onRemove?: (Set<Key>) => void
slot?: string | null
styles?: StyleString
}/@react-spectrum/ai:PromptFieldAttachmentList PromptFieldAttachmentList {
aria-describedby?: string
aria-details?: string
aria-label?: string
aria-labelledby?: string
children?: (PromptFieldAttachment) => React.ReactNode
dependencies?: ReadonlyArray<any>
disabledKeys?: Iterable<Key>
id?: string
items?: Iterable<PromptFieldAttachment>
+ onAction?: (Key) => void
onRemove?: (Set<Key>) => void
slot?: string | null
styles?: StyleString
}/@react-spectrum/ai:AttachmentListProps AttachmentListProps <T> {
aria-describedby?: string
aria-details?: string
aria-label?: string
aria-labelledby?: string
children?: ReactNode | (T) => ReactNode
dependencies?: ReadonlyArray<any>
disabledKeys?: Iterable<Key>
id?: string
items?: Iterable<T>
+ onAction?: (Key) => void
onRemove?: (Set<Key>) => void
slot?: string | null
styles?: StyleString
}/@react-spectrum/ai:PromptFieldAttachmentListProps PromptFieldAttachmentListProps {
aria-describedby?: string
aria-details?: string
aria-label?: string
aria-labelledby?: string
children?: (PromptFieldAttachment) => React.ReactNode
dependencies?: ReadonlyArray<any>
disabledKeys?: Iterable<Key>
id?: string
items?: Iterable<PromptFieldAttachment>
+ onAction?: (Key) => void
onRemove?: (Set<Key>) => void
slot?: string | null
styles?: StyleString
} |
Agent Skills ChangesModified (9)
InstallReact Spectrum S2: React Aria: |
|
I see this is largely based on Devons exploration from the Carousel RFC. Just for your consideration, I may point out that Tab-based Carousels have a rather large accessibility challenge, that also remains unresolved here: how to handle focus(within) on slides if they are scrolled/swiped. Since this is for a Lightbox component, we should consider enforcing phrasing content only. There are similarities in principle to the ongoing work for "readonly" StepList. |
|
Yeah good point on how to handle focus within the slides if they are scrolled/swiped. I'll bring it up with the team and see what we want to do there. Otherwise, this is supposed to be a pretty simple version of carousel. I don't think we'll have autoplay (at least in this version) so some of the accessibility concerns that were brought up for that use case won't be addressed here. And I don't think there are plans to support Virtualization for this specific component in the AI package. Perhaps that discussion will change if we bring this pattern into RAC. I will definitely need to play around with the voice over announcements and see how that works with scrolling. It's not something I've tried yet so far. |
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: