You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using is-selectable on cds-table I'm seeing a weird alignment issue in Firefox with the checkboxes in each table row. The checkboxes are top-aligned instead of in the middle of the row:
If I use Edge instead of Firefox, they are middle aligned:
But the really odd thing is, in the example in the docs, the checkboxes are displayed middle aligned, even in Firefox!
So I thought maybe it was something in my code, but I can't see what's different about what I've done to the example. Here's a CodeSandBox link to show the problem.
Two other things which are also worth pointing out.
As I've mentioned before, to get the checkboxes to appear in a data table, for some reason you have to include the toggle js file. I don't think that's particularly obvious, or documented. So if it's intended, then probably need to mention that?
In my CodeSandBox above, I specifically didn't add the is-sortable tag to the table. So why are the columns sortable?! In the Example in the Docs I linked to above, those columns aren't sortable. So it's not clear to me what makes the columns sortable or non-sortable. Bug? Related to the checkbox alignment?
Component(s) impacted
data table with selection
Browser
No response
Carbon for IBM.com version
2.8.0
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
### Related Ticket(s)
Closes#11742
### Description
This PR center aligns data table checkboxes within their flexbox divs in order to avoid reliance on inconsistent `vertical-align` implementations across various browsers
### Changelog
**New**
- data table checkbox flexbox alignment rule
<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
### Related Ticket(s)
Closescarbon-design-system#11742
### Description
This PR center aligns data table checkboxes within their flexbox divs in order to avoid reliance on inconsistent `vertical-align` implementations across various browsers
### Changelog
**New**
- data table checkbox flexbox alignment rule
<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
Description
originally reported on Slack:
https://ibm-studios.slack.com/archives/CL83LMKSA/p1711102469594919
Component(s) impacted
data table with selection
Browser
No response
Carbon for IBM.com version
2.8.0
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Application/website
Package
@carbon/web-components
CodeSandbox example
https://web-components.carbondesignsystem.com/?path=/story/components-datatable-selection--default
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: