Skip to content

Commit 5ba6f9d

Browse files
committed
fix(home): add aria-expanded to toggle button, skip popular in expanded view
1 parent c951713 commit 5ba6f9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/template-prompts/template-prompts.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function getGroupedExtras() {
2626

2727
for (const [key, meta] of Object.entries(CATEGORY_META)) {
2828
const cat = key as Category
29+
if (cat === 'popular') continue
2930
const items = byCategory.get(cat)
3031
if (items?.length) {
3132
groups.push({ category: cat, label: meta.label, templates: items })
@@ -72,6 +73,7 @@ export function TemplatePrompts({ onSelect }: TemplatePromptsProps) {
7273
<button
7374
type='button'
7475
onClick={() => setExpanded((prev) => !prev)}
76+
aria-expanded={expanded}
7577
className='flex items-center justify-center gap-[6px] text-[13px] text-[var(--text-secondary)] transition-colors hover:text-[var(--text-body)]'
7678
>
7779
{expanded ? (

0 commit comments

Comments
 (0)