@sanity/ui 2.0.0-alpha.15 → 2.0.0-alpha.16

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/dist/index.esm.js CHANGED
@@ -8847,26 +8847,27 @@ const DialogCard = forwardRef(function DialogCard2(props, ref) {
8847
8847
  children: [showHeader && /* @__PURE__ */jsx(DialogHeader, {
8848
8848
  $isContentScrollable: isContentScrollable,
8849
8849
  $hasScrolledFromTop: hasScrolledFromTop,
8850
- paddingLeft: 4,
8851
- paddingRight: 3,
8852
- paddingY: 3,
8853
8850
  children: /* @__PURE__ */jsxs(Flex, {
8854
8851
  align: "center",
8855
8852
  children: [/* @__PURE__ */jsx(Box, {
8856
8853
  flex: 1,
8854
+ margin: 1,
8855
+ padding: 4,
8857
8856
  children: header && /* @__PURE__ */jsx(Text, {
8858
8857
  id: labelId,
8859
8858
  size: 1,
8860
8859
  weight: "medium",
8861
8860
  children: header
8862
8861
  })
8863
- }), showCloseButton && /* @__PURE__ */jsx(Button, {
8864
- "aria-label": "Close dialog",
8865
- disabled: !onClose,
8866
- icon: CloseIcon,
8867
- mode: "bleed",
8868
- onClick: onClose,
8869
- padding: 3
8862
+ }), showCloseButton && /* @__PURE__ */jsx(Box, {
8863
+ padding: 3,
8864
+ children: /* @__PURE__ */jsx(Button, {
8865
+ "aria-label": "Close dialog",
8866
+ disabled: !onClose,
8867
+ icon: CloseIcon,
8868
+ mode: "bleed",
8869
+ onClick: onClose
8870
+ })
8870
8871
  })]
8871
8872
  })
8872
8873
  }), /* @__PURE__ */jsx(DialogContent, {