Skip to content

Commit

Permalink
fixed banner style
Browse files Browse the repository at this point in the history
related to keycloak#33349

Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit committed Jan 7, 2025
1 parent 7cb7718 commit 555268a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/apps/admin-ui/src/Banners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { ExclamationTriangleIcon } from "@patternfly/react-icons";
import { useWhoAmI } from "./context/whoami/WhoAmI";
import { useTranslation } from "react-i18next";

import style from "./banners.module.css";

type WarnBannerProps = {
msg: string;
};
Expand All @@ -11,7 +13,7 @@ const WarnBanner = ({ msg }: WarnBannerProps) => {
const { t } = useTranslation();

return (
<Banner screenReaderText={t(msg)} variant="gold" isSticky>
<Banner screenReaderText={t(msg)} variant="gold" className={style.banner}>
<Flex
spaceItems={{ default: "spaceItemsSm" }}
flexWrap={{ default: "wrap" }}
Expand Down
4 changes: 4 additions & 0 deletions js/apps/admin-ui/src/banner.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

.banner {
grid-area: banners;
}
8 changes: 8 additions & 0 deletions js/apps/admin-ui/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ input[type="checkbox"] {

#app {
overflow: hidden;
grid-column-start: banners;
"banners banners"
"header header"
"nav main";
}

.pf-v5-c-page__sidebar {
grid-row-start: 3;
}

div.w-tc-editor {
Expand Down

0 comments on commit 555268a

Please sign in to comment.