We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e398a8 commit b0d9a1aCopy full SHA for b0d9a1a
.changeset/slow-drinks-applaud.md
@@ -0,0 +1,5 @@
1
+---
2
+"@utrecht/img-css": patch
3
4
+
5
+Fix CSS image component to support `img` attributes `width` and `height`.
components/img/src/_mixin.scss
@@ -5,11 +5,15 @@
*/
6
7
@mixin utrecht-img {
8
- /* stylelint-disable-next-line property-disallowed-list */
9
- height: auto;
+ &:not(img[height]) {
+ /* stylelint-disable-next-line property-disallowed-list */
10
+ height: auto;
11
+ }
12
- width: auto;
13
+ &:not(img[width]) {
14
15
+ width: auto;
16
17
}
18
19
@mixin utrecht-img--scale-down {
0 commit comments