Open Bug 1931059 Opened 3 months ago Updated 2 months ago

Elements that extend MozBaseInputElement can have a visible description without a visible label

Categories

(Toolkit :: UI Widgets, defect, P3)

defect

Tracking

()

REOPENED

People

(Reporter: hjones, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [recomp])

Attachments

(1 file)

Currently if you provide a description to one of our custom elements that extends MozBaseInputElement the description will render regardless of whether or not you also supply a label. This looks weird visually and is probably not ever desirable (see attachment). It should be a pretty simple change to only render the description when a label is present. We will also need to update some tests and add an additional test as part of this work.

This is an unfortunate consequence of attributes being optional, even though the label is not really optional. If this happens, then we should fix that in fluent or in the design, since the label should definitely be required

Severity: -- → S4
Priority: -- → P3
See Also: → 1928501
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → WONTFIX
See Also: 1928501

After further discussion it may be nice to warn developers here so it's more clear where to look. Reopening and attaching to a new metabug

Blocks: 1932230
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: