Skip to content

Commit

Permalink
fixed things
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jul 10, 2024
1 parent 0388950 commit 65aeff9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/devtools/client/inspector/computed/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function createComputedProperties(
const combinedNameValue = `${name}:${property.value}`;
let parsedValue = cachedParsedProperties.get(combinedNameValue)!;
if (!parsedValue) {
parsedValue = outputParser.parseCssProperty(name, value);
parsedValue = outputParser.parseCssProperty(name, property.value);
cachedParsedProperties.set(combinedNameValue, parsedValue);
}

Expand Down
4 changes: 3 additions & 1 deletion src/devtools/client/inspector/computed/state/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Priority } from "../../rules/models/text-property";

export interface ComputedPropertyState {
name: string;
value: string;
Expand All @@ -9,7 +11,7 @@ export interface MatchedSelectorState {
selector: string;
value: string;
parsedValue: any[];
priority: string;
priority: Priority;
overridden: boolean;
stylesheet: string;
stylesheetURL: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";

import { COLOR, FONT_FAMILY, URI } from "third-party/css/output-parser";

import { Priority } from "../models/text-property";
import Color from "./value/Color";
import FontFamily from "./value/FontFamily";
import Url from "./value/Url";
Expand All @@ -10,7 +11,7 @@ interface DeclarationValueProps {
colorSpanClassName: string;
colorSwatchClassName: string;
fontFamilySpanClassName: string;
priority?: string;
priority?: Priority;
values: (string | Record<string, string>)[];
}

Expand Down

0 comments on commit 65aeff9

Please sign in to comment.