Skip to content

Commit

Permalink
[ErrorPage]: embed typography styles for error page texts. Add underl…
Browse files Browse the repository at this point in the history
…ine style for link.
  • Loading branch information
AlekseyManetov committed Dec 5, 2024
1 parent 32a1c8c commit 72c88fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [Alert]: added support for size theming
* [DataTable]: added support of column groups in table header. Read more - https://uui.epam.com/documents?id=advancedTables&mode=doc&category=tables&theme=electric#table_with_header_groups
* [ErrorPage]: added field for additional message with support link (it works with `500, 503, default` errors), added support link for the site
* [ErrorPage]: embed typography styles for error page texts

**What's Fixed**
* [PickerInput]: fixed unnecessary api calls on body open with `minCharsToSearch` prop and search in body
Expand Down
4 changes: 0 additions & 4 deletions uui/components/errors/ErrorPage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
color: var(--uui-text-primary);
max-width: 700px;
margin-top: 18px;

a {
text-decoration: none;
}
}

@media screen and (max-width: 720px) {
Expand Down
2 changes: 1 addition & 1 deletion uui/components/errors/ErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const ErrorPage: React.FC<ErrorPageProps> = (props) => {

return (
<div className={ cx(css.container, props.cx) }>
<div className="uui-error-content">
<div className={ cx('uui-error-content', 'uui-typography') }>
<img className="uui-error-image" src={ isMobileScreen && props.mobileImageUrl ? props.mobileImageUrl : props.imageUrl } alt="ERROR OCCURRED!" />
<div className="uui-error-title">{props.title}</div>
<div className="uui-error-subtitle">{props.subtitle}</div>
Expand Down

0 comments on commit 72c88fc

Please sign in to comment.