Repository navigation
Fix clipping of Last run state badge - #72459
Conversation
Chakra's default select value clamping hides the lower edge of rich labels such as state badges.
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
|
cc: @bbovenzi and @pierrejeambrun for a review. |
|
CI failure is separate |
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
Backport failed to create: v3-3-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 4ddb6b4 v3-3-testThis should apply the commit to the v3-3-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
Chakra's default select value clamping hides the lower edge of rich labels such as state badges. (cherry picked from commit 4ddb6b4) Co-authored-by: jasperjonkhans <[email protected]>
apache#72459 stopped the select trigger from clipping rich option labels, but the collapsed FilterPill still renders the badge node itself inside a fixed-height pill, so the selected state is cut off top and bottom. Give select options an optional plain-text pillLabel and show it in the collapsed pill, keeping badges in the trigger and dropdown menu as merged in apache#72459.
Prevent Chakra's default select value clamping from clipping rich selected labels such as state badges in the Dags "Last run" filter.
Keep the existing clamping behavior for plain-text labels while allowing rich labels to render with visible overflow. Add a regression test covering a selected failed state badge.
closes: #72283
Validation
pnpm test src/components/FilterBar/FilterBar.test.tsx src/pages/DagsList/DagsList.test.tsx— 17 tests passedpnpm lintpnpm buildoverflow: visibleand-webkit-line-clamp: nonein the rendered select valueScreenshots
Before
After
Was generative AI tooling used to co-author this PR?
Generated-by: Pi coding agent following the guidelines
for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
(AIP) is needed.
{pr_number}.significant.rst, in airflow-core/newsfragments.