Skip to content

Commit 7f1fb55

Browse files
authored
Merge pull request #4222 from 3scale/fix-policy-checkbox-style
THREESCALE-10550: Fix the alignment of checkbox in policy configuration
2 parents 87890f7 + c443067 commit 7f1fb55

File tree

4 files changed

+415
-11
lines changed

4 files changed

+415
-11
lines changed

.qlty/qlty.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,5 @@ package_filters = ["eslint"]
100100

101101
[[plugin]]
102102
name = "stylelint"
103-
extra_packages = ["stylelint-config-standard-scss@latest"]
103+
package_file = "package.json"
104+
package_filters = ["stylelint"]

app/javascript/src/Policies/styles/policies.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,13 @@ fieldset.policies-fieldset {
159159
display: none;
160160
}
161161

162+
input[type="checkbox"] {
163+
top: auto;
164+
margin-top: 0.375rem;
165+
}
166+
162167
.Policy-status input#policy-enabled[type="checkbox"][name="policy-enabled"] {
163-
position: relative;
164-
top: -1px;
165168
margin: 0 0.375rem 0 1px;
166-
vertical-align: baseline;
167-
border-radius: 0.1875rem;
168169
}
169170
}
170171
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"jest": "30.2.0",
4040
"jest-environment-jsdom": "30.2.0",
4141
"mockdate": "^3.0.5",
42+
"stylelint": "^16.26.0",
43+
"stylelint-config-standard-scss": "^14.0.0",
4244
"ts-jest": "29.4.6",
4345
"typescript": "5.0.4",
4446
"webpack": "5.104.1",

0 commit comments

Comments
 (0)