Table row expanded icon disappears when expanded on Firefox and looks like a checkbox
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Click on the “expand” icon.
What is expected?
Icon becomes horizontal
What is actually happening?
Icon animates and disappears afterwards.
Environment | Info |
---|---|
antd | 4.12.2 |
React | 17 |
System | Windows 10 |
Browser | Firefox 86 |
This is most likely due to scaling issues (::after width being 1px and displaying as 0 on certain scales), because after zooming the page in it works.
Workaround for now:
.ant-table-row-expand-icon::after {
bottom: 2px;
}
.ant-table-row-expand-icon::before {
height: 2px;
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Checkbox input types disappears when floated left inside a ...
Inside those child <div>s are a checkbox input and a label element. The checkbox has a CSS for `float: left;` applied. Here's a...
Read more >Using the WAI-ARIA aria-expanded state to mark expandable ...
A button hides or exposes a paragraph of text on the page. The state of the paragraph is represented by the attribute aria-expanded...
Read more >Can I change the checkbox size using CSS? - Stack Overflow
3 · Reading all the comments - there is a really simple way to do this without involving CSS: <input type="checkbox" name="checkboxName" value="on"...
Read more >A Complete Guide to the Table Element | CSS-Tricks
Rowspan is similar, it's just a little harder and more of a mental leap, because columns aren't grouped like rows are. If a...
Read more >Change Log - Ant Design
Major version release is not included in this schedule for breaking change and new features. ... Fix that Table expanded icons are not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For those who want the old behavior from antd version 3 back, the following CSS should do the trick. It should work in firefox:
So I have exactly the same issue. Firefox 86.0. The gif was made from the demo page (as you can see in the address bar):
Can this issue be reopened? After I made the gif, I noticed that my FF was not updated; after update the problem still persists: