fix: styles for <AlertBanner /> (#5579)

* feat: add new story for LoginPageView

* fix: update <AlertBanner /> styles

- align text to the left
- add padding to the top of span inside

* fixup: formatting
This commit is contained in:
Joe Previte
2023-01-04 14:46:41 -07:00
committed by GitHub
parent c51b5a05db
commit a231c1a384
2 changed files with 18 additions and 0 deletions
@@ -96,6 +96,11 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
borderRadius: theme.shape.borderRadius,
padding: `${theme.spacing(1)}px ${theme.spacing(2)}px`,
backgroundColor: `${colors.gray[16]}`,
textAlign: "left",
"& span": {
paddingTop: `${theme.spacing(0.25)}px`,
},
// targeting the alert icon rather than the expander icon
"& svg:nth-child(2)": {
@@ -17,3 +17,16 @@ Example.args = {
onSignIn: action("onSignIn"),
context: {},
}
const err = new Error(
"You are signed out or your session has expired. Please sign in again to continue.",
)
export const AuthError = Template.bind({})
AuthError.args = {
isLoading: false,
onSignIn: action("onSignIn"),
context: {
authError: err,
},
}