Replies: 4 comments 3 replies
-
Thanks for suggesting a hotfix @SPodjasek. |
Beta Was this translation helpful? Give feedback.
-
I do see this in current documentation - https://getbootstrap.com/docs/5.3/components/button-group/ |
Beta Was this translation helpful? Give feedback.
-
It seems to be Chrome only, here's a screenshot from Firefox on the same machine My version of Chrome is 113.0.5672.63 and Firefox is 112.0.2 |
Beta Was this translation helpful? Give feedback.
-
I've found the root cause of this edge-case behavior. It only happens when you enable font scaling in system properties with non-integer values. In my case, I use Ubuntu 23.04 with Chrome on a 4K display, and my font scaling was 1,2x. It looks as it should when I set scaling to 1,0x or 2,0x. Also, it seems that Firefox doesn't respect system-wide font scaling. |
Beta Was this translation helpful? Give feedback.
-
Current implementation with negative margin sometimes renders badly - in my case on HiDPI displays. Some borders between buttons are visible as double width, maybe it's an issue with chrome but disabling left-side border on not-first elements solves this issue and probably won't break rendering in other cases.
Current implementation
bootstrap/scss/_button-group.scss
Lines 36 to 43 in ea4da49
looks like this:
After applying this hotfix:
Maybe it's worth implementing?
Beta Was this translation helpful? Give feedback.
All reactions