Skip to content

Commit 534fbe8

Browse files
authored
Merge pull request #14 from factorial-io/fix!/typo-mediafeature
fix!: wrong mediaFeature spelling
2 parents fe90b3f + a0682c0 commit 534fbe8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ module.exports = class Breakpoints {
201201
}
202202
if (this.#config.options.minWidth && Breakpoints.getMinWidths(option)) {
203203
this.#customProperties.push({
204-
mediaFeature: "minWidth",
204+
mediaFeature: "min-width",
205205
name: `${baseName}-minWidth`,
206206
value: Breakpoints.getMinWidths(option),
207207
});
208208
}
209209
if (this.#config.options.maxWidth && Breakpoints.getMaxWidths(option)) {
210210
this.#customProperties.push({
211-
mediaFeature: "maxWidth",
211+
mediaFeature: "max-width",
212212
name: `${baseName}-maxWidth`,
213213
value: Breakpoints.getMaxWidths(option),
214214
});

lib/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export interface Breakpoint {
6464
}
6565

6666
export interface customProperty {
67-
mediaFeature?: "minWidth" | "maxWidth" | "resolution";
67+
mediaFeature?: "min-width" | "max-width" | "resolution";
6868
name: string;
6969
value: string;
7070
}

0 commit comments

Comments
 (0)