Closed Bug 1838720 Opened 2 years ago Closed 1 year ago

Add mixin to handle link tag injection in lit template

Categories

(Firefox :: about:logins, task, P4)

task

Tracking

()

RESOLVED FIXED
119 Branch

People

(Reporter: issammani, Assigned: issammani)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxcm-productive-ux])

Attachments

(2 files)

The current way we inject our link tags is not ideal. Each time we write a component, we have to check if the browsing context is storybook or not and also add the <link> tag inside the html template. Ideally we don't want to think about this each time we write a component. To do this we can write a mixin that takes in a class and css filename and does this for us: withStyles(SomeComponent, ["some-file.css"]). Alternatively we could also have the style files defined inside the class (static stylesheetUrls = [...]) instead of passing it to the mixin, but this makes us think about styles in two places instead of one.

Blocks: 1748500
Whiteboard: [fxcm-productive-ux]
See Also: → 1810890

Got an email about the spam comment and realized we should probably close this out as the underlying issue of individual components needing to be aware of browsing context was fixed by the Storybook CSS import/bundling implemented in Bug 1810890.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Depends on: 1810890
See Also: 1810890
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: