Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-tabs] Fixed issue to prefer customDisplay over label #1864

Merged
merged 6 commits into from
Nov 2, 2023

Conversation

saket2403
Copy link
Contributor

Summary

The label prop should get preference over customDisplay prop. But after the common tabs changes, customDisplay was not passed on to the CommonTabItem.Hence the label prop was rendered in all scenarios.

What was changed:

Passed the customDisplay prop to the CommonTabItem.

Why it was changed:

CustomDisplay prop was not getting rendered. Instead the label prop was getting preference.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-9796


Thank you for contributing to Terra.
@cerner/terra

@github-actions github-actions bot temporarily deployed to preview-pr-1864 November 2, 2023 10:16 Destroyed
@saket2403 saket2403 merged commit 4ab5397 into main Nov 2, 2023
21 checks passed
@saket2403 saket2403 deleted the tab-custom-display branch November 2, 2023 11:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants