@rogieking/figui3 1.0.31 → 1.0.33

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.
Files changed (3) hide show
  1. package/fig.css +3 -2
  2. package/fig.js +1 -1
  3. package/package.json +1 -1
package/fig.css CHANGED
@@ -1661,7 +1661,6 @@ fig-popover,
1661
1661
  fig-dialog,
1662
1662
  fig-content,
1663
1663
  fig-slider,
1664
- fig-segmented-control,
1665
1664
  fig-switch,
1666
1665
  fig-input-color,
1667
1666
  fig-input-text,
@@ -1879,10 +1878,11 @@ fig-spinner {
1879
1878
  /* Segmented control */
1880
1879
  .segmented-control,
1881
1880
  fig-segmented-control {
1881
+ display: inline-flex;
1882
+ user-select: none;
1882
1883
  background-color: var(--figma-color-bg-secondary);
1883
1884
  border: 0;
1884
1885
  border-radius: var(--radius-medium);
1885
- min-width: 6rem;
1886
1886
  height: 1.5rem;
1887
1887
  padding: 1px;
1888
1888
  gap: 0;
@@ -1897,6 +1897,7 @@ fig-segmented-control {
1897
1897
  justify-content: center;
1898
1898
  position: relative;
1899
1899
  appearance: none;
1900
+ min-width: 1.5rem;
1900
1901
  padding: 0 var(--spacer-2);
1901
1902
 
1902
1903
  &[selected]:not([selected="false"]),
package/fig.js CHANGED
@@ -658,7 +658,7 @@ class FigSlider extends HTMLElement {
658
658
  default:
659
659
  this[name] = this.input[name] = newValue;
660
660
  if (this.textInput) {
661
- this.textInput[name] = newValue;
661
+ this.textInput.setAttribute(name, newValue);
662
662
  }
663
663
  this.handleInput();
664
664
  break;
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.31"
3
+ "version": "1.0.33"
4
4
  }