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

chore(Table): enabled ref forwarding #358

Merged
merged 5 commits into from
May 28, 2024
Merged

chore(Table): enabled ref forwarding #358

merged 5 commits into from
May 28, 2024

Conversation

shindigira
Copy link
Contributor

@shindigira shindigira commented May 25, 2024

closes #359

Changes

  • Adds ref forwarding
  • adds a divRef and a tableRef

How to test

  • yarn test Table`

Reference
cfpb/sbl-frontend#547

Copy link

netlify bot commented May 25, 2024

Deploy Preview for cfpb-design-system-react ready!

Name Link
🔨 Latest commit 4388a21
🔍 Latest deploy log https://app.netlify.com/sites/cfpb-design-system-react/deploys/66523cf4e551d90008558340
😎 Deploy Preview https://deploy-preview-358--cfpb-design-system-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@billhimmelsbach billhimmelsbach 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!

@shindigira shindigira merged commit c040212 into main May 28, 2024
8 of 10 checks passed
@shindigira shindigira deleted the ref-table branch May 28, 2024 16:42
shindigira added a commit to cfpb/sbl-frontend that referenced this pull request May 28, 2024
…ow when overflowing (horizontal scrolling active) (#583)

closes #547 

Note: Requires cfpb/design-system-react#358 to
be merged in first

## Changes
- enhancement-style(tables): full borders will only show for overflowing
- chore(tables): removed the need for `showTableBorders`

## How to test this PR

1. `yarn install` to get the latest DSR update with the table ref change
2. use
[all-errors-warnings-no-syntax-errors.csv](https://github.com/cfpb/sbl-frontend/files/15444623/all-errors-warnings-no-syntax-errors.csv)
or any register with multifield errors that causes
overflowing/horizontal scrolling
3. Verify that tables without overflowing don't have full borders,
tables that do have overflowing/horizontal scrolling have full borders

## Screenshot
<img width="638" alt="Screenshot 2024-05-25 at 11 47 57 AM"
src="https://github.com/cfpb/sbl-frontend/assets/13324863/635e1840-4ef4-4e86-8fc9-679f62cc3903">
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.

[Table] Allow ref forwarding
2 participants