Open Bug 1912214 Opened 11 months ago

Use HTMLTooltip for InvalidAtComputedValueTime error message

Categories

(DevTools :: Inspector: Rules, task)

task

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

Details

At the moment, we show the message in a simple title attribute, which isn't the best https://searchfox.org/mozilla-central/rev/0c55d51c0d2a9b672e42ad40ea54f90267f92a8e/devtools/client/inspector/rules/views/text-property-editor.js#906-909

this.invalidAtComputedValueTimeWarning.title = l10nFormatStr(
  "rule.warningInvalidAtComputedValueTime.title",
  `"${this.prop.getExpectedSyntax()}"`
);

displaying it in an HTML tooltip will make it more visible and allow us to add nicer styling

You need to log in before you can comment on or make changes to this bug.