@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/dist/index.mjs
CHANGED
|
@@ -304,6 +304,11 @@ function useAuthStyles(theme) {
|
|
|
304
304
|
primaryButton: {
|
|
305
305
|
borderRadius: radii.input,
|
|
306
306
|
paddingVertical: BUTTON_VERTICAL_PADDING,
|
|
307
|
+
paddingHorizontal: spacing.md,
|
|
308
|
+
// Never shrink below the label width: in a row of actions (e.g. the
|
|
309
|
+
// forgot-password modal's Cancel + submit), shrinking would clip a long
|
|
310
|
+
// label like "Send reset link" past the button's rounded edge.
|
|
311
|
+
flexShrink: 0,
|
|
307
312
|
alignItems: "center",
|
|
308
313
|
justifyContent: "center",
|
|
309
314
|
marginTop: spacing.xs,
|
|
@@ -346,6 +351,8 @@ function useAuthStyles(theme) {
|
|
|
346
351
|
borderWidth: 1,
|
|
347
352
|
borderColor: colors.primary,
|
|
348
353
|
paddingVertical: BUTTON_VERTICAL_PADDING,
|
|
354
|
+
paddingHorizontal: spacing.md,
|
|
355
|
+
flexShrink: 0,
|
|
349
356
|
alignItems: "center",
|
|
350
357
|
justifyContent: "center",
|
|
351
358
|
marginTop: spacing.sm,
|
|
@@ -822,6 +829,9 @@ function useModalStyles(theme) {
|
|
|
822
829
|
flexDirection: "row",
|
|
823
830
|
justifyContent: "flex-end",
|
|
824
831
|
alignItems: "center",
|
|
832
|
+
// Wrap (rather than clip) when a long submit label + Cancel can't
|
|
833
|
+
// fit a narrow modal on one line.
|
|
834
|
+
flexWrap: "wrap",
|
|
825
835
|
marginTop: theme.spacing.md,
|
|
826
836
|
gap: theme.spacing.sm
|
|
827
837
|
},
|
|
@@ -829,6 +839,8 @@ function useModalStyles(theme) {
|
|
|
829
839
|
borderRadius: theme.radii.input,
|
|
830
840
|
paddingVertical: theme.spacing.sm,
|
|
831
841
|
paddingHorizontal: theme.spacing.md,
|
|
842
|
+
// Match the submit button: never shrink below the label width.
|
|
843
|
+
flexShrink: 0,
|
|
832
844
|
borderWidth: SECONDARY_BORDER_WIDTH,
|
|
833
845
|
borderColor: theme.colors.border
|
|
834
846
|
},
|