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

Fix data table HTML column labels on mobile #1409

Conversation

bgilhome-now
Copy link
Contributor

Fix for bug issue #1408

Issue:

What I did

  • Used responsively hidden div for mobile data label instead of pseudo-element content.

How to test

  • Add data table using an HTML column (isLabelHTML: true and include HTML in the label)
  • Ensure rendered correctly on desktop & mobile

Checklist

For all PR's

  • I've added relevant changes to the project Readme if needed
  • I've updated the documentation site as needed
  • I have added tests to cover my changes (if not applicable, please state why in a comment)

For new UI components only

  • I have added a storybook story covering all variants
  • I have checked a11y tab in storybook passes
  • I have added cypress component tests (if the component is interactive)
  • Any events are emitted on the event bus using emitRplEvent

@waitingallday waitingallday requested a review from lambry December 12, 2024 03:37
@waitingallday waitingallday changed the base branch from develop to release/2.23.0 December 12, 2024 03:37
@@ -114,8 +114,8 @@ const getCellText = (col?: number | string, value = '') => {
:is="i === 0 && verticalHeader ? 'th' : 'td'"
v-for="(column, i) of columns"
:key="i"
:data-label="column.label"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @bgilhome-now, thanks for fixing this.

Can we please add the data-label back in for now, it won't be used for displaying content but there is some other stuff around that utilises it i.e. tests.

Cheers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @lambry , done!

@waitingallday waitingallday added this to the 2.23.0 milestone Dec 12, 2024
@waitingallday waitingallday merged commit 9ff95ac into dpc-sdp:release/2.23.0 Dec 16, 2024
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.

3 participants