diff --git a/web/src/Root.jsx b/web/src/Root.jsx index 969c7fae43..368e4a00ce 100644 --- a/web/src/Root.jsx +++ b/web/src/Root.jsx @@ -22,14 +22,13 @@ import React from "react"; import { Outlet, NavLink } from "react-router-dom"; import { - Masthead, MastheadToggle, MastheadMain, MastheadBrand, + Masthead, MastheadContent, MastheadToggle, MastheadMain, MastheadBrand, Nav, NavItem, NavList, Page, PageSidebar, PageSidebarBody, PageToggleButton, - Stack + Toolbar, ToolbarContent, ToolbarGroup, ToolbarItem } from "@patternfly/react-core"; import { Icon } from "~/components/layout"; -import { About, LogsButton } from "~/components/core"; -import { InstallerKeymapSwitcher, InstallerLocaleSwitcher } from "~/components/l10n"; +import { About, InstallerOptions } from "~/components/core"; import { _ } from "~/i18n"; import { rootRoutes } from "~/router"; import { useProduct } from "~/context/product"; @@ -55,6 +54,17 @@ const Header = () => { {title} + + + + + + + + + + + ); }; @@ -84,13 +94,8 @@ const Sidebar = () => { {links} - - - - - - - + + ); diff --git a/web/src/SimpleLayout.jsx b/web/src/SimpleLayout.jsx index 5331fa9e46..d34a84d988 100644 --- a/web/src/SimpleLayout.jsx +++ b/web/src/SimpleLayout.jsx @@ -21,7 +21,12 @@ import React from "react"; import { Outlet } from "react-router-dom"; -import { Page } from "@patternfly/react-core"; +import { + Masthead, MastheadContent, + Page, + Toolbar, ToolbarContent, ToolbarGroup, ToolbarItem +} from "@patternfly/react-core"; +import { InstallerOptions } from "~/components/core"; import { _ } from "~/i18n"; /** @@ -31,6 +36,19 @@ import { _ } from "~/i18n"; export default function SimpleLayout() { return ( + + + + + + + + + + + + + ); diff --git a/web/src/assets/styles/patternfly-overrides.scss b/web/src/assets/styles/patternfly-overrides.scss index 7256d92c17..b1ce04fd1b 100644 --- a/web/src/assets/styles/patternfly-overrides.scss +++ b/web/src/assets/styles/patternfly-overrides.scss @@ -303,3 +303,8 @@ table td > .pf-v5-c-empty-state { .pf-v5-c-masthead { fill: white; } + +.pf-v5-c-masthead .pf-v5-c-button.pf-m-link, +.pf-v5-c-masthead .pf-v5-c-button.pf-m-plain { + color: white; +} diff --git a/web/src/components/core/About.jsx b/web/src/components/core/About.jsx index 75b77808bd..736dbef7a0 100644 --- a/web/src/components/core/About.jsx +++ b/web/src/components/core/About.jsx @@ -39,15 +39,16 @@ import { Popup } from "~/components/core"; * @param {object} props * @param {boolean} [props.showIcon=true] - Whether render a "help" icon into the button. * @param {string} [props.iconSize="s"] - The size for the button icon. - * @param {string} [props.buttonText="About Agama"] - The text for the button. + * @param {string} [props.buttonText="About"] - The text for the button. * @param {ButtonProps["variant"]} [props.buttonVariant="link"] - The button variant. * See {@link https://www.patternfly.org/components/button#variant-examples PF/Button}. */ export default function About({ showIcon = true, iconSize = "s", - buttonText = _("About Agama"), - buttonVariant = "link" + buttonText = _("About"), + buttonVariant = "link", + ...props }) { const [isOpen, setIsOpen] = useState(false); @@ -60,8 +61,9 @@ export default function About({ variant={buttonVariant} icon={showIcon && } onClick={open} + {...props} > - { buttonText } + {buttonText} setIsOpen(true); + const close = () => setIsOpen(false); + + return ( + <> +