Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1906 data table slotted content #1918

Merged
merged 3 commits into from
May 29, 2024
Merged

Conversation

ad9242
Copy link
Contributor

@ad9242 ad9242 commented May 23, 2024

Summary of the changes

Fixes an issue with slotting content into data-table cells. In some cases the check for content in the slot would return null. For example, if using a <SlottedSVG> element

The change to the getSlotElements helper method means some code can be removed from ic-horizontal-scroll, as the slot content will now be returned by that method

Related issue

#1906

Checklist

Testing

  • Relevant unit tests and visual regression tests added.

@CLAassistant
Copy link

CLAassistant commented May 23, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@ad9242 ad9242 force-pushed the 1906-data-table-slotted-content branch from 2468ee7 to 31ca22f Compare May 23, 2024 15:18
@ad9242 ad9242 marked this pull request as draft May 24, 2024 06:26
fixes issue where slot content would return as null, even though content was in the slot
… in data table cell

fixes issue where SlottedSVG in a table cell prevented the data able from rendering
@ad9242 ad9242 force-pushed the 1906-data-table-slotted-content branch 3 times, most recently from 027ccaf to 78f1e47 Compare May 24, 2024 11:29
adds a test to handle when a SlottedSVG is placed in the table cell
@ad9242 ad9242 force-pushed the 1906-data-table-slotted-content branch from 78f1e47 to 75520f1 Compare May 24, 2024 11:48
@ad9242 ad9242 marked this pull request as ready for review May 24, 2024 12:11
@MI6-255 MI6-255 merged commit 41f107f into develop May 29, 2024
12 checks passed
@ad9242 ad9242 deleted the 1906-data-table-slotted-content branch June 3, 2024 15:00
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.

None yet

5 participants