Skip to content

Commit d39bc79

Browse files
committed
Apply changes from PR review
- Update Warning title - Fix typo - Simplify SASS code
1 parent 35a3f96 commit d39bc79

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ A list of every Checka11y.css error & warning code with details on what the issu
150150
The `longdesc` attribute has been detected in an `<img>`. The `longdesc` attribute in images is deprecated and should not be used. It is not fully supported by HTML5, browsers, or screen readers. When present, it is commonly misused (it should point to an URL that is not an image).
151151

152152
- ### W0016
153-
The `viewport` meta tag contains a property that disables the zoom and/or the viewpot scale. Such a property may prevent users from interacting with the web page, and make it more difficult to view the content.
153+
The `viewport` meta tag contains a property that disables the zoom and/or the viewport scale. Such a property may prevent users from interacting with the web page, and make it more difficult to view the content.

src/warnings/features/_head.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ head {
66
display: block;
77
}
88

9-
/* E0017: title element must not be empty */
10-
head meta[name="viewport"][content*="maximum-scale=1" i],
11-
head meta[name="viewport"][content*="user-scalable=no" i] {
12-
@include vectorMessage(warning, "W0016", 458, "The display zoom/scale", "has been disabled.");
9+
/* W0016: title element must not be empty */
10+
head meta[name="viewport"] {
11+
&[content*="maximum-scale=1" i],
12+
&[content*="user-scalable=no" i] {
13+
@include vectorMessage(warning, "W0016", 458, "The display zoom/scale", "has been disabled.");
1314

14-
display: block;
15-
border: 0;
15+
display: block;
16+
border: 0;
17+
}
1618
}

0 commit comments

Comments
 (0)