@dloizides/auth-web 1.5.0 → 1.5.1
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/CHANGELOG.md +18 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.1 (2026-06-30)
|
|
4
|
+
|
|
5
|
+
Patch release. Pure styling fix — no API changes.
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Submit button label no longer overflows in `<ForgotPasswordFields>`.** The
|
|
10
|
+
shared `primaryButton` style (used by the forgot-password submit button as
|
|
11
|
+
well as `<LoginForm>` / `<OtpForm>` / `<PinForm>`) carried `paddingVertical`
|
|
12
|
+
but no `paddingHorizontal`. In the forgot-password modal's `flex-end` action
|
|
13
|
+
row the submit button sizes to its content, so with zero horizontal padding a
|
|
14
|
+
longer label like "Send reset link" ran to the button's rounded edges and
|
|
15
|
+
visually spilled past them. Added `paddingHorizontal: spacing.md` and
|
|
16
|
+
`flexShrink: 0` to the shared `primaryButton` and `secondaryButton` so the
|
|
17
|
+
button always sizes to fit its label, and let the modal action row wrap
|
|
18
|
+
(`flexWrap: 'wrap'`) as a safety net on very narrow modals. Colours, radii and
|
|
19
|
+
typography still come from the consumer `AuthTheme` — unchanged.
|
|
20
|
+
|
|
3
21
|
## 1.3.0 (2026-05-31)
|
|
4
22
|
|
|
5
23
|
Additive release for the auth-UX reuse roll-out (feature-reuse-roadmap #1).
|
package/dist/index.js
CHANGED
|
@@ -305,6 +305,11 @@ function useAuthStyles(theme) {
|
|
|
305
305
|
primaryButton: {
|
|
306
306
|
borderRadius: radii.input,
|
|
307
307
|
paddingVertical: BUTTON_VERTICAL_PADDING,
|
|
308
|
+
paddingHorizontal: spacing.md,
|
|
309
|
+
// Never shrink below the label width: in a row of actions (e.g. the
|
|
310
|
+
// forgot-password modal's Cancel + submit), shrinking would clip a long
|
|
311
|
+
// label like "Send reset link" past the button's rounded edge.
|
|
312
|
+
flexShrink: 0,
|
|
308
313
|
alignItems: "center",
|
|
309
314
|
justifyContent: "center",
|
|
310
315
|
marginTop: spacing.xs,
|
|
@@ -347,6 +352,8 @@ function useAuthStyles(theme) {
|
|
|
347
352
|
borderWidth: 1,
|
|
348
353
|
borderColor: colors.primary,
|
|
349
354
|
paddingVertical: BUTTON_VERTICAL_PADDING,
|
|
355
|
+
paddingHorizontal: spacing.md,
|
|
356
|
+
flexShrink: 0,
|
|
350
357
|
alignItems: "center",
|
|
351
358
|
justifyContent: "center",
|
|
352
359
|
marginTop: spacing.sm,
|
|
@@ -823,6 +830,9 @@ function useModalStyles(theme) {
|
|
|
823
830
|
flexDirection: "row",
|
|
824
831
|
justifyContent: "flex-end",
|
|
825
832
|
alignItems: "center",
|
|
833
|
+
// Wrap (rather than clip) when a long submit label + Cancel can't
|
|
834
|
+
// fit a narrow modal on one line.
|
|
835
|
+
flexWrap: "wrap",
|
|
826
836
|
marginTop: theme.spacing.md,
|
|
827
837
|
gap: theme.spacing.sm
|
|
828
838
|
},
|
|
@@ -830,6 +840,8 @@ function useModalStyles(theme) {
|
|
|
830
840
|
borderRadius: theme.radii.input,
|
|
831
841
|
paddingVertical: theme.spacing.sm,
|
|
832
842
|
paddingHorizontal: theme.spacing.md,
|
|
843
|
+
// Match the submit button: never shrink below the label width.
|
|
844
|
+
flexShrink: 0,
|
|
833
845
|
borderWidth: SECONDARY_BORDER_WIDTH,
|
|
834
846
|
borderColor: theme.colors.border
|
|
835
847
|
},
|