Skip to content

Commit cec215c

Browse files
committed
chore: fix radio button distortion
1 parent 97341da commit cec215c

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

packages/atlas-core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- We fixed an issue with radio buttons being distorted in some cases.
12+
913
### Changed
1014

1115
- Moved .sr-only from bootstrap to base

packages/atlas/src/themesource/atlas_core/web/core/_legacy/_mxui.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,14 +2357,8 @@ Main class hierarchy:
23572357
padding-right: 15px;
23582358
}
23592359

2360-
.mx-radiobuttons.inline .radio {
2361-
display: inline-block;
2362-
margin-right: 20px;
2363-
}
2364-
23652360
.mx-radiobuttons .radio input[type="radio"] {
23662361
/* Reset bootstrap rules */
2367-
position: static;
23682362
margin-right: 8px;
23692363
margin-left: 0;
23702364
}

packages/atlas/src/themesource/atlas_core/web/core/widgets/_radio-button.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@
2525
}
2626

2727
.radio {
28-
display: flex !important; // Remove after mxui merge
28+
display: flex;
2929
align-items: center;
3030
margin-top: 0;
3131
}
3232

3333
input[type="radio"] {
34-
position: relative !important; // Remove after mxui merge
34+
position: relative !important;
3535
width: 16px;
36+
flex: 0 0 16px;
3637
height: 16px;
3738
margin: 0;
3839
cursor: pointer;

0 commit comments

Comments
 (0)