Closed Bug 1901713 Opened 2 years ago Closed 2 years ago

Container query "Jump to container node" button is not keyboard accessible

Categories

(DevTools :: Inspector: Rules, defect)

defect

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/aa9d148d5be3e7b606448f0b8da6e9f4fa43112f/devtools/client/inspector/rules/views/rule-editor.js#185-190

// We can't use a button, otherwise a line break is added when copy/pasting the rule
const jumpToNodeButton = createChild(selectorContainer, "span", {
  class: "open-inspector",
  role: "button",
  title: l10n("rule.containerQuery.selectContainerButton.tooltip"),
});

I didn't use a button initially because it was adding a line break when copy/pasting the rule, but this can be handled with a CSS property, so let's have a proper button!

Summary: Use proper button for "Jump to container node" → Container query "Jump to container node" button is not keyboard accessible

The button can now be focus and activated with the keyboard.
This allows us to remove one fail-if annotation in associated test.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8d41ba2e0cd6 [devtools] Turn container query jump to node icon into a proper button. r=devtools-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: