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.

checkbox checked icon is not in the center of the input in selection table

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

set Table with bordered: true

What is expected?

the icon should be in the center of the input

What is actually happening?

the icon is in the left of the input

Environment Info
antd 3.18.2
React 16.8.6
System MacOS 10.14.3
Browser Chrome 76.0.3795.3 & 76.0.3800.0

Kapture 2019-05-21 at 11 02 37

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
MrHeercommented, May 21, 2019

Can we do this: mixin.less#L64

  top: 50%;
- left: 21%;
+ left: 50%;
  display: table;

mixin.less#L99

  border-left: 0;
- transform: rotate(45deg) scale(1) translate(-50%, -50%);
+ transform: rotate(45deg) scale(1) translate(-100%, -20%);
  opacity: 1;

Preview

Read more comments on GitHub >

github_iconTop Results From Across the Web

center a check/tick within a custom check box - Stack Overflow
I need the check centered within the circle; I only need the check to be active on click of the checkbox itself not...
Read more >
How place a checkbox into the center of a table cell?
A checkbox can be placed in the center of the table cell by either using the plain CSS stylesheet or with the help...
Read more >
<input type="checkbox"> - HTML: HyperText Markup Language
A checkbox allows you to select single values for submission in a ... It does not indicate whether this checkbox is currently checked:...
Read more >
Checkbox component - Carbon Design System
Turning the checkbox input on or off can indicate whether you agree to the terms. ... you can select children individually when the...
Read more >
How To Create a Custom Checkbox - W3Schools
Learn how to create custom checkboxes and radio buttons with CSS. ... user-select: none; ... When the radio button is checked, add a...
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