summaryrefslogtreecommitdiffstats
path: root/toolkit/content/widgets/moz-button
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/content/widgets/moz-button')
-rw-r--r--toolkit/content/widgets/moz-button/moz-button.css3
-rw-r--r--toolkit/content/widgets/moz-button/moz-button.mjs5
2 files changed, 8 insertions, 0 deletions
diff --git a/toolkit/content/widgets/moz-button/moz-button.css b/toolkit/content/widgets/moz-button/moz-button.css
index 47567df41d..71d57ea93a 100644
--- a/toolkit/content/widgets/moz-button/moz-button.css
+++ b/toolkit/content/widgets/moz-button/moz-button.css
@@ -4,6 +4,8 @@
:host {
display: inline-block;
+ height: fit-content;
+ width: fit-content;
}
button {
@@ -133,6 +135,7 @@ button {
width: var(--button-size-icon);
height: var(--button-size-icon);
padding: var(--button-padding-icon);
+ color: var(--icon-color);
&[size=small] {
width: var(--button-size-icon-small);
diff --git a/toolkit/content/widgets/moz-button/moz-button.mjs b/toolkit/content/widgets/moz-button/moz-button.mjs
index 3e7c151e61..a951dbf5d8 100644
--- a/toolkit/content/widgets/moz-button/moz-button.mjs
+++ b/toolkit/content/widgets/moz-button/moz-button.mjs
@@ -68,6 +68,11 @@ export default class MozButton extends MozLitElement {
}
}
+ // Delegate clicks on host to the button element.
+ click() {
+ this.buttonEl.click();
+ }
+
render() {
return html`
<link