Skip to content

feat(ui): add font-size support to SelectItem via SelectContext#27379

Merged
anuj-kumary merged 3 commits intomainfrom
feat/select-item-font-size
Apr 15, 2026
Merged

feat(ui): add font-size support to SelectItem via SelectContext#27379
anuj-kumary merged 3 commits intomainfrom
feat/select-item-font-size

Conversation

@anuj-kumary
Copy link
Copy Markdown
Member

@anuj-kumary anuj-kumary commented Apr 15, 2026

Describe your changes:

Extends fontSize prop support from the Select trigger button down to SelectItem dropdown options, so both the selected value display and the dropdown items use the same configured font size.

Problem
Previously, Select accepted a fontSize prop that only applied to the trigger button (the selected value display). The dropdown SelectItem components used a hardcoded tw:text-md class, so changing fontSize on Select had no effect on the dropdown list items the two were visually inconsistent.

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Extends SelectContext to include fontSize so SelectItem inherits the
font size configured on the parent Select, enabling consistent text
sizing across both the trigger and dropdown items.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gitar-bot
Copy link
Copy Markdown

gitar-bot Bot commented Apr 15, 2026

Code Review ✅ Approved

Integrates font-size support into SelectItem using SelectContext to improve UI consistency. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 15, 2026

🟡 Playwright Results — all passed (15 flaky)

✅ 3641 passed · ❌ 0 failed · 🟡 15 flaky · ⏭️ 84 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 479 0 1 4
🟡 Shard 2 641 0 4 7
🟡 Shard 3 650 0 3 1
🟡 Shard 4 623 0 3 22
✅ Shard 5 612 0 0 42
🟡 Shard 6 636 0 4 8
🟡 15 flaky test(s) (passed on retry)
  • Pages/Roles.spec.ts › Delete role action from manage button options (shard 1, 1 retry)
  • Features/BulkEditEntity.spec.ts › Glossary (shard 2, 1 retry)
  • Features/ChangeSummaryBadge.spec.ts › Automated badge should appear on entity description with Automated source (shard 2, 1 retry)
  • Features/Glossary/GlossaryP3Tests.spec.ts › should handle multiple rapid API calls (shard 2, 1 retry)
  • Features/Glossary/GlossaryPagination.spec.ts › should filter by InReview status (shard 2, 1 retry)
  • Features/Permissions/GlossaryPermissions.spec.ts › Team-based permissions work correctly (shard 3, 1 retry)
  • Features/RestoreEntityInheritedFields.spec.ts › Validate restore with Inherited domain and data products assigned (shard 3, 1 retry)
  • Flow/NotificationAlerts.spec.ts › Conversation source alert (shard 3, 1 retry)
  • Pages/Customproperties-part2.spec.ts › entityReferenceList shows item count, scrollable list, no expand toggle (shard 4, 1 retry)
  • Pages/DataContractsSemanticRules.spec.ts › Validate Description Rule Is_Set (shard 4, 1 retry)
  • Pages/Domains.spec.ts › Multiple consecutive domain renames preserve all associations (shard 4, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage schema filter selection (shard 6, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: searchIndex (shard 6, 1 retry)
  • Pages/Tag.spec.ts › Verify Owner Add Delete (shard 6, 1 retry)
  • Pages/Users.spec.ts › Permissions for table details page for Data Consumer (shard 6, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@anuj-kumary anuj-kumary merged commit 48ffbba into main Apr 15, 2026
49 of 50 checks passed
@anuj-kumary anuj-kumary deleted the feat/select-item-font-size branch April 15, 2026 11:13
RajdeepKushwaha5 added a commit to RajdeepKushwaha5/OpenMetadata that referenced this pull request Apr 16, 2026
…mplete

PR open-metadata#27379 added fontSize as a required property to SelectContext but
only updated select.tsx. This adds the missing fontSize property to
combobox.tsx and autocomplete.tsx to fix the TypeScript build error
(TS2741) that is currently blocking CI on all open PRs.
RajdeepKushwaha5 added a commit to RajdeepKushwaha5/OpenMetadata that referenced this pull request Apr 16, 2026
…mplete

PR open-metadata#27379 added fontSize as a required property to SelectContext but
only updated select.tsx. This adds the missing fontSize property to
combobox.tsx and autocomplete.tsx to fix the TypeScript build error
(TS2741) that is currently blocking CI on all open PRs.
RajdeepKushwaha5 added a commit to RajdeepKushwaha5/OpenMetadata that referenced this pull request Apr 16, 2026
…Autocomplete

Unblocks CI on this PR. main is currently failing tsc --noEmit with TS2741 because open-metadata#27379 made fontSize a required field on SelectContext but only updated select.tsx. combobox.tsx and autocomplete.tsx also provide that context and were missed, cascading into all py-tests and Playwright failures on every open PR.

Mirrors the fix in PR open-metadata#27435.
RajdeepKushwaha5 added a commit to RajdeepKushwaha5/OpenMetadata that referenced this pull request Apr 17, 2026
…Autocomplete

Unblocks CI on this PR. main is currently failing tsc --noEmit with TS2741 because open-metadata#27379 made fontSize a required field on SelectContext but only updated select.tsx. combobox.tsx and autocomplete.tsx also provide that context and were missed, cascading into all py-tests and Playwright failures on every open PR.

Mirrors the fix in PR open-metadata#27435.
RajdeepKushwaha5 added a commit to RajdeepKushwaha5/OpenMetadata that referenced this pull request Apr 17, 2026
…mplete

PR open-metadata#27379 added fontSize as a required property to SelectContext but
only updated select.tsx. This adds the missing fontSize property to
combobox.tsx and autocomplete.tsx to fix the TypeScript build error
(TS2741) that is currently blocking CI on all open PRs.
chirag-madlani added a commit that referenced this pull request Apr 20, 2026
…mplete (#27435)

PR #27379 added fontSize as a required property to SelectContext but
only updated select.tsx. This adds the missing fontSize property to
combobox.tsx and autocomplete.tsx to fix the TypeScript build error
(TS2741) that is currently blocking CI on all open PRs.

Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com>
Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants