gecko-dev/toolkit/content/widgets/moz-toggle
Hanna Jones 56d655b0c4 Bug 1799471 - Part 1: add description slot to moz-toggle r=tgiles,mstriemer
This patch updates `moz-toggle` to accept a `description` slot that can be used to change the description markup in cases where we need to display a support link or some other content.

I'm not totally convinced using a slot is the right approach since it might be making the toggle markup a little too configurable. One alternative is we could accept another property that we use to append a support link to the description, but I don't love that either. I don't want our components sprouting tons of properties to handle edge cases. Open to thoughts/feedback on this.

Differential Revision: https://phabricator.services.mozilla.com/D167880
2023-02-08 00:09:06 +00:00
..
moz-toggle.css Bug 1799471 - Part 1: add description slot to moz-toggle r=tgiles,mstriemer 2023-02-08 00:09:06 +00:00
moz-toggle.mjs Bug 1799471 - Part 1: add description slot to moz-toggle r=tgiles,mstriemer 2023-02-08 00:09:06 +00:00
moz-toggle.stories.mjs Bug 1799471 - Part 1: add description slot to moz-toggle r=tgiles,mstriemer 2023-02-08 00:09:06 +00:00