Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webui: use monospace font in critical error dialog #5033

Merged

Conversation

rvykydal
Copy link
Contributor

This brings the fonts used in the dialog more in line with the mockup: #4942 (comment).

PR:
critical_error_monospace

Current state:
critical_error_default

@rvykydal rvykydal requested review from KKoukiou, M4rtinK and garrett and removed request for KKoukiou August 10, 2023 14:12
@@ -36,6 +36,8 @@ import { ExternalLinkAltIcon } from "@patternfly/react-icons";

import { exitGui } from "../helpers/exit.js";

import "./Error.scss";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it also work by using the Patternfly pre solution? <Text component={TextVariants.pre}>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this:

                    <TextContent id="critical-error-review-details">
                        <Text component={TextVariants.pre}>
                            {exception.name + ": " + exception.message}
                        </Text>
                    </TextContent>

Screenshot from 2023-08-11 09-09-43

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops does not look good. Sorry for wrong hint

Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. :)

@rvykydal
Copy link
Contributor Author

/kickstar-test --testtype smoke

@rvykydal
Copy link
Contributor Author

/kickstart-test --testtype smoke

@rvykydal rvykydal merged commit b2e2cd0 into rhinstaller:master Aug 11, 2023
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants