Skip to content

Commit 05e3f0a

Browse files
committed
fix popover padding and range calendar translation
1 parent 36c4b4a commit 05e3f0a

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

packages/@react-spectrum/s2/src/RangeCalendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const RangeCalendar = /*#__PURE__*/ (forwardRef as forwardRefType)(functi
103103
</div>
104104
{isInvalid && (
105105
<Text slot="errorMessage" className={helpTextStyles({isInvalid, isDisabled, size: 'M'})}>
106-
{errorMessage || stringFormatter.format('invalidSelection', {selectedCount: 2})}
106+
{errorMessage || stringFormatter.format('calendar.invalidSelection', {selectedCount: 2})}
107107
</Text>
108108
)}
109109
</>

starters/docs/src/Dialog.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
.react-aria-Dialog {
44
outline: none;
5-
padding: 30px;
65
max-height: inherit;
76
box-sizing: border-box;
87
overflow: auto;
98

10-
&.no-padding {
11-
padding: 0;
12-
}
13-
149
.react-aria-Heading[slot=title] {
1510
line-height: 1em;
1611
margin-top: 0;
1712
}
1813
}
14+
15+
.dialog-padding {
16+
padding: 30px;
17+
}

starters/docs/src/Popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function Popover({ children, hideArrow, noPadding, ...props }: PopoverPro
1818
return (
1919
(
2020
<AriaPopover {...props} className={clsx("react-aria-Popover react-aria-Dialog", props.className, {
21-
'no-padding': noPadding
21+
'dialog-padding': !noPadding
2222
})}>
2323
{!hideArrow && (
2424
<OverlayArrow>

0 commit comments

Comments
 (0)