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

feat(sbb-table-wrapper): initial implementation #2715

Merged
merged 44 commits into from
Jun 20, 2024
Merged

feat(sbb-table-wrapper): initial implementation #2715

merged 44 commits into from
Jun 20, 2024

Conversation

TomMenga
Copy link
Contributor

@TomMenga TomMenga commented Jun 5, 2024

Preflight Checklist

Issue

This PR Closes #2670

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

See Review Guidelines for more information what is checked during review process.

Changes

Changes in this pull request:

  • Table styles and mixins
  • sbb-table-wrapper implementation

Browsers

I tested the build on the following browsers:

  • Firefox Desktop
  • Chrome Desktop
  • Edge Desktop
  • Safari Desktop
  • Chrome Mobile
  • Safari Mobile

Screen readers

I tested the build on the following browsers:

  • JAWS Firefox Desktop
  • JAWS Chrome Desktop
  • NVDA Firefox Desktop
  • NVDA Chrome Desktop
  • VoiceOver Safari Desktop
  • VoiceOver Chrome Desktop
  • VoiceOver Safari Mobile
  • Android Accessibility Suite Chrome Mobile

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Does this introduce a breaking change?

  • Yes
  • No

Other information

@TomMenga TomMenga self-assigned this Jun 5, 2024
@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Jun 5, 2024
@TomMenga TomMenga linked an issue Jun 5, 2024 that may be closed by this pull request
10 tasks
@TomMenga TomMenga added the pr: lead review required A lead review is required for this pull request label Jun 5, 2024
@github-actions github-actions bot temporarily deployed to pr2715 June 5, 2024 09:35 Inactive
@TomMenga TomMenga changed the title feat(sbb-table-wrapper): initial implementation feat(sbb-table-wrapper): initial implementation [WIP] Jun 5, 2024
@github-actions github-actions bot removed the pr: peer review required A peer review is required for this pull request label Jun 5, 2024
Copy link
Contributor

@DavideMininni-Fincons DavideMininni-Fincons left a comment

Choose a reason for hiding this comment

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

Looks good! some minor changes

src/elements/table/table-wrapper/readme.md Outdated Show resolved Hide resolved
src/elements/table/table-wrapper/readme.md Outdated Show resolved Hide resolved
src/elements/table/table-wrapper/table-wrapper.stories.ts Outdated Show resolved Hide resolved
src/elements/table/table-wrapper/table-wrapper.stories.ts Outdated Show resolved Hide resolved
src/storybook/styles/table/table.stories.ts Outdated Show resolved Hide resolved
src/storybook/styles/table/table.stories.ts Outdated Show resolved Hide resolved
@TomMenga TomMenga added the pr: peer review required A peer review is required for this pull request label Jun 5, 2024
@github-actions github-actions bot temporarily deployed to pr2715 June 6, 2024 07:20 Inactive
Copy link
Contributor

@kyubisation kyubisation left a comment

Choose a reason for hiding this comment

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

Generally LGTM 👍
Some open topics:

@TomMenga
Copy link
Contributor Author

TomMenga commented Jun 10, 2024

Generally LGTM 👍 Some open topics:

I'll reply point by point:

  • In the first implementation I set the width to 100%. Then, I thought the consumer should be responsible for the table layout (whether fixed or auto) and size. I'm not against having a default 100% width though.
  • It's not the same, unfortunately. We do not have a problem understanding when to show the shadow (we already do that in the sticky header for example). The problem stands in the shadow effect itself since we do not have any element that could cast that shadow from the table borders. The angular wrapper only has a shadow effect on fixed columns (because the column itself can cast it). I've tried different approaches but none of them worked 100%.
    The closest thing I found was by simulating a shadow using backgrounds (Codepen). The drawback is that the appearance is bound to the scroll and that's not an actual shadow. Maybe we can deep down on it in a call
  • On it 👍

@TomMenga TomMenga changed the title feat(sbb-table-wrapper): initial implementation [WIP] feat(sbb-table-wrapper): initial implementation Jun 10, 2024
@github-actions github-actions bot temporarily deployed to pr2715 June 18, 2024 07:18 Inactive
@github-actions github-actions bot temporarily deployed to pr2715 June 19, 2024 13:15 Inactive
@mcilurzo mcilurzo added pr: ux review approved Pull request has been approved by a ux review and removed pr: ux review required A ux review is required for this pull request labels Jun 19, 2024
@mcilurzo mcilurzo added this to the Release 2.0.0 milestone Jun 19, 2024
@github-actions github-actions bot temporarily deployed to pr2715 June 20, 2024 07:06 Inactive
Copy link
Contributor

@kyubisation kyubisation left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Nice work!

src/elements/table/table-wrapper/table-wrapper.ts Outdated Show resolved Hide resolved
@github-actions github-actions bot added pr: lead review approved Pull request has been approved by a lead review and removed pr: lead review required A lead review is required for this pull request labels Jun 20, 2024
@github-actions github-actions bot temporarily deployed to pr2715 June 20, 2024 13:00 Inactive
@TomMenga TomMenga merged commit d6aaf68 into main Jun 20, 2024
20 of 22 checks passed
@TomMenga TomMenga deleted the feat/table branch June 20, 2024 14:43
@github-actions github-actions bot added pr: peer review required A peer review is required for this pull request and removed pr: peer review required A peer review is required for this pull request labels Jun 20, 2024
@kyubisation kyubisation mentioned this pull request Jun 26, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diff-available pr: lead review approved Pull request has been approved by a lead review pr: peer review required A peer review is required for this pull request pr: ux review approved Pull request has been approved by a ux review pr: visual review required preview-available
Projects
None yet
Development

Successfully merging this pull request may close these issues.

story(table): implement design and wrapper
5 participants