Closed Bug 1790632 Opened 2 years ago Closed 7 months ago

Create an example Lit based button component

Categories

(Toolkit :: UI Widgets, task)

task

Tracking

()

RESOLVED DUPLICATE of bug 1791816

People

(Reporter: hjones, Assigned: hjones)

References

Details

Attachments

(1 obsolete file)

As specified in the reusable components proposal, one of the first components we want to tackle is a Lit based button. We have a complete design spec for this, and it should be relatively straightforward using mostly existing button styles.

Once the Lit vendoring is in place I'll make a first pass at writing a new button component. At the very least this will give us an opportunity to test aspects of the plan laid out in that proposal, and will give us something more concrete to discuss when we're thinking about how to move the reusable components project forward.

Depends on D157473

Blocks: 1791816

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → DOM: Core & HTML
Product: Firefox → Core
Component: DOM: Core & HTML → XUL Widgets
Product: Core → Toolkit

Just a random question: has anyone done any performance profiling on this kinds of UI widgets?
I'm mostly worried that this doesn't end up using the prototype cache, and thus any page load (UI load) becomes slower.
But perhaps I'm missing something obvious.

(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #3)

Just a random question: has anyone done any performance profiling on this kinds of UI widgets?
I'm mostly worried that this doesn't end up using the prototype cache, and thus any page load (UI load) becomes slower.
But perhaps I'm missing something obvious.

I've been advocating for using plain button elements with classes for different variants such as "primary", sort what we already do today. IMHO the current wip patch is an unnecessarily convoluted abstraction in search for a real purpose that would justify introducing a custom element here.

This is no longer relevant now that the work of creating a button component is happening on Bug 1791816

Status: NEW → RESOLVED
Closed: 7 months ago
Duplicate of bug: 1791816
Resolution: --- → DUPLICATE
Attachment #9294907 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: