question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

Edit on CodeSandbox

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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
MichaelBuessemeyercommented, Apr 7, 2021

For those who want the old behavior from antd version 3 back, the following CSS should do the trick. It should work in firefox:

.ant-table-row-expand-icon::after {
  display: none;
}
.ant-table-row-expand-icon-expanded::before {
  content: "-";
}
.ant-table-row-expand-icon-collapsed::before {
  content: "+";
}
.ant-table-row-expand-icon::before {
  position: unset;
  transform: none;
  background: inherit;
  height: 100%;
}

.ant-table-row-expand-icon {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  line-height: 13px;
}
0reactions
anddrzejbcommented, Mar 19, 2021

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): firefox_expandable

Can this issue be reopened? After I made the gif, I noticed that my FF was not updated; after update the problem still persists: image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found