Skip to content

add support for secondary text on select items#1883

Merged
jallen-cyber merged 4 commits intomainfrom
SHPE-1203-FlexRate-Drop-Down-SubText
Apr 9, 2026
Merged

add support for secondary text on select items#1883
jallen-cyber merged 4 commits intomainfrom
SHPE-1203-FlexRate-Drop-Down-SubText

Conversation

@jallen-cyber
Copy link
Copy Markdown
Contributor

📝 Changes

Please provide a brief summary of the changes made and why they were made.

Include any notes, screenshots, or videos that may be helpful for developers reviewing this pull request.

✅ Checklist

Easy UI has certain UX standards that must be met. In general, non-trivial changes should meet the following criteria:

  • Visuals match Design Specs in Figma
  • Stories accompany any component changes
  • Code is in accordance with our style guide
  • Design tokens are utilized
  • Unit tests accompany any component changes
  • TSDoc is written for any API surface area
  • Specs are up-to-date
  • Console is free from warnings
  • No accessibility violations are reported
  • Cross-browser check is performed (Chrome, Safari, Firefox)
  • Changeset is added

Strikethrough any items that are not applicable to this pull request.

@jallen-cyber jallen-cyber requested review from a team as code owners April 8, 2026 21:15
@jallen-cyber
Copy link
Copy Markdown
Contributor Author

jallen-cyber commented Apr 8, 2026

Screenshot 2026-04-08 171747

screenshot from Storybook

@jallen-cyber jallen-cyber force-pushed the SHPE-1203-FlexRate-Drop-Down-SubText branch from 6221cf6 to e250c52 Compare April 8, 2026 21:51
const captionText = showHelperText ? helperText : errorText;
const selectedDescription = (
selectState.selectedItem?.props as { description?: ReactNode } | undefined
)?.description;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: is it possible to render the descriptive secondary text without passing isDescriptive to Select?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that it ended up being dead code after my final changes

@jallen-cyber jallen-cyber force-pushed the SHPE-1203-FlexRate-Drop-Down-SubText branch from fe423fb to 0e2dce2 Compare April 9, 2026 14:28
@jallen-cyber jallen-cyber force-pushed the SHPE-1203-FlexRate-Drop-Down-SubText branch from 0e2dce2 to 6502f0f Compare April 9, 2026 14:36
Copy link
Copy Markdown
Member

@OskiTheCoder OskiTheCoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jallen-cyber jallen-cyber merged commit 6ca337d into main Apr 9, 2026
6 checks passed
@jallen-cyber jallen-cyber deleted the SHPE-1203-FlexRate-Drop-Down-SubText branch April 9, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants