@rogieking/figui3 8.9.39 → 8.9.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/components.css +29 -3
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +2 -2
- package/fig.js +3 -2
- package/package.json +1 -1
package/dist/fig.js
CHANGED
|
@@ -138,9 +138,9 @@ fig-icon[size="small"] {
|
|
|
138
138
|
display: flex;
|
|
139
139
|
border: 0;
|
|
140
140
|
flex: 1;
|
|
141
|
-
text-align: center;
|
|
141
|
+
text-align: var(--fig-button-text-alignment, center);
|
|
142
142
|
align-items: stretch;
|
|
143
|
-
justify-content: center;
|
|
143
|
+
justify-content: var(--fig-button-content-alignment, center);
|
|
144
144
|
font: inherit;
|
|
145
145
|
color: inherit;
|
|
146
146
|
outline: 0;
|
package/fig.js
CHANGED
|
@@ -595,6 +595,7 @@ function figSupportsPopover() {
|
|
|
595
595
|
* @attr {string} type - The button type: "button" (default), "toggle", "submit", or "link"
|
|
596
596
|
* @attr {boolean} selected - Whether the button is in a selected state
|
|
597
597
|
* @attr {boolean} disabled - Whether the button is disabled
|
|
598
|
+
* @attr {string} align - Content alignment: "start", "center" (default), or "end"
|
|
598
599
|
* @attr {string} href - URL for link type buttons
|
|
599
600
|
* @attr {string} target - Target window for link type buttons (e.g., "_blank")
|
|
600
601
|
*/
|
|
@@ -637,9 +638,9 @@ class FigButton extends HTMLElement {
|
|
|
637
638
|
display: flex;
|
|
638
639
|
border: 0;
|
|
639
640
|
flex: 1;
|
|
640
|
-
text-align: center;
|
|
641
|
+
text-align: var(--fig-button-text-alignment, center);
|
|
641
642
|
align-items: stretch;
|
|
642
|
-
justify-content: center;
|
|
643
|
+
justify-content: var(--fig-button-content-alignment, center);
|
|
643
644
|
font: inherit;
|
|
644
645
|
color: inherit;
|
|
645
646
|
outline: 0;
|
package/package.json
CHANGED