mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-06 19:29:24 +02:00
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 |
||
|---|---|---|
| .. | ||
| moz-toggle.css | ||
| moz-toggle.mjs | ||
| moz-toggle.stories.mjs | ||