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

[terra-list] Reverted refCallback from div to li #4053

Merged
merged 3 commits into from
Mar 5, 2024
Merged

Conversation

adavijit
Copy link
Collaborator

@adavijit adavijit commented Mar 5, 2024

Summary

What was changed:
Restored the refCallback prop for the ListSectionHeader and ListSubsectionHeader components to be applied to the intended li element instead of the inner div tag.

Why it was changed:
This aligns with the correct purpose of the prop as specified in both the source code and Terra documentation.

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-10248


Thank you for contributing to Terra.
@cerner/terra

@adavijit adavijit requested a review from a team as a code owner March 5, 2024 04:45
@github-actions github-actions bot temporarily deployed to preview-pr-4053 March 5, 2024 04:45 Destroyed
@saket2403 saket2403 changed the title [UXPLATFORM-10248] Reverted refCallback from div to li [terra-list] Reverted refCallback from div to li Mar 5, 2024
@saket2403
Copy link
Contributor

Can you make the same changes in List SubsectionHeader as well here(https://github.com/cerner/terra-core/blob/main/packages/terra-list/src/ListSubsectionHeader.jsx#L113-L115)

@adavijit
Copy link
Collaborator Author

adavijit commented Mar 5, 2024

Can you make the same changes in List SubsectionHeader as well here(https://github.com/cerner/terra-core/blob/main/packages/terra-list/src/ListSubsectionHeader.jsx#L113-L115)

@saket2403 , Changed for ListSubsectionHeader component

@github-actions github-actions bot temporarily deployed to preview-pr-4053 March 5, 2024 09:10 Destroyed
Co-authored-by: Sugan G <sugan.guts@gmail.com>
@saket2403 saket2403 merged commit 482adcb into main Mar 5, 2024
22 checks passed
@saket2403 saket2403 deleted the UXPLATFORM-10248 branch March 5, 2024 11:02
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.

3 participants