Skip to content

Commit 02c4719

Browse files
committed
Add missing comment error styling
1 parent 51a3253 commit 02c4719

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.sass-lint.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ rules:
3737
- allow-leading-underscore: false
3838
convention: hyphenatedlowercase
3939
ignore: [
40-
'comments_error',
4140
'error_message',
42-
'errorElement',
43-
'comError',
44-
'comRequired',
45-
'comRequirederrorElement'
41+
'comments_error'
4642
]
4743

4844
# Enforce whether or not `@import` paths should have leading underscores and/or filename extensions.

src/assets/sass/modules/_comments.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,19 @@
8686
border-radius: $border-radius;
8787
background-color: $color-highlight-box;
8888
}
89+
90+
/**
91+
* Highlight text colour for comment errors.
92+
*/
93+
94+
.error_message li {
95+
color: $color-error-text;
96+
}
97+
98+
/**
99+
* Highlighting for comment form errors.
100+
*/
101+
102+
.comments_error {
103+
border-color: $color-error-text;
104+
}

src/assets/sass/modules/_lists.scss

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,11 @@ dd {
5757
* <ol class="list--no-bullets">
5858
*/
5959

60-
.list--no-bullets,
61-
.comError {
60+
.list--no-bullets {
6261
padding: 0;
6362
list-style: none;
6463
}
6564

66-
.comError {
67-
margin-bottom: 0.5em;
68-
}
69-
7065
/**
7166
* Have a numbered `ul` without the semantics implied by using an `ol`.
7267
*

0 commit comments

Comments
 (0)