Skip to content

Commit

Permalink
(HDS-2243) fix wrong errorSummary icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mrTuomoK committed May 6, 2024
1 parent 8c4e94f commit b681f22
Show file tree
Hide file tree
Showing 23 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [Component] What bugs/typos are fixed?
- [Footer] Fix Koros height issue (Calm type was of wrong height)
- [ErrorSummary] Change wrong error icon to correct one

### Core

Expand All @@ -40,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Changed

- [Component] What has been changed
- [ErrorSummary] Change wrong error icon to correct one

#### Fixed

Expand All @@ -62,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Fixed

- [Component] What bugs/typos are fixed?
- [ErrorSummary] Change wrong error icon to correct one

### Figma

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../notification/notification.css';
import './error-summary.css';
import '../../icons/icon.css';
import '../../icons/alert-circle.css';
import '../../icons/error-fill.css';

export default {
title: 'Components/Error summary',
Expand All @@ -12,7 +12,7 @@ export const Default = () => `
<section aria-label="Error summary" class="hds-notification hds-notification--error">
<div class="hds-notification__content">
<div class="hds-notification__label" role="heading" aria-level="2" tabindex="-1">
<span class="hds-icon hds-icon--alert-circle-fill" aria-hidden="true"></span>
<span class="hds-icon hds-icon--error-fill" aria-hidden="true"></span>
<span>Form contains following errors</span>
</div>
<div class="hds-notification__body hds-error-summary__body">
Expand All @@ -36,7 +36,7 @@ export const Large = () => `
<section aria-label="Error summary" class="hds-notification hds-notification--error hds-notification--large">
<div class="hds-notification__content">
<div class="hds-notification__label" role="heading" aria-level="2" tabindex="-1">
<span class="hds-icon hds-icon--alert-circle-fill" aria-hidden="true"></span>
<span class="hds-icon hds-icon--error-fill" aria-hidden="true"></span>
<span>Form contains following errors</span>
</div>
<div class="hds-notification__body hds-error-summary__body">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/react/src/components/errorSummary/ErrorSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useRef, useEffect } from 'react';
import '../../styles/base.module.css';
import errorSummaryStyles from './ErrorSummary.module.scss';
import notificationStyles from '../notification/Notification.module.css';
import { IconAlertCircleFill } from '../../icons';
import { IconErrorFill } from '../../icons';
import classNames from '../../utils/classNames';

export type ErrorSummarySize = 'default' | 'large';
Expand Down Expand Up @@ -62,7 +62,7 @@ export const ErrorSummary = React.forwardRef<HTMLDivElement, ErrorSummaryProps>(
tabIndex={-1}
ref={labelRef}
>
<IconAlertCircleFill className={notificationStyles.icon} aria-hidden />
<IconErrorFill className={notificationStyles.icon} aria-hidden />
{label}
</div>
<div className={(notificationStyles.body, errorSummaryStyles.errorSummaryBody)}>{children}</div>
Expand Down
2 changes: 1 addition & 1 deletion site/src/docs/components/error-summary/code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { ErrorSummary } from 'hds-react';
<section aria-label="Error summary" class="hds-notification hds-notification--error">
<div class="hds-notification__content">
<div class="hds-notification__label" role="heading" aria-level="2" tabindex="-1">
<span class="hds-icon hds-icon--alert-circle-fill" aria-hidden="true"></span>
<span class="hds-icon hds-icon--error-fill" aria-hidden="true"></span>
<span>Error summary</span>
</div>
<div class="hds-notification__body hds-error-summary__body">
Expand Down
2 changes: 1 addition & 1 deletion site/src/docs/components/error-summary/customisation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import { ErrorSummary } from 'hds-react';
>
<div class="hds-notification__content">
<div class="hds-notification__label" role="heading" aria-level="2" tabindex="-1">
<span class="hds-icon hds-icon--alert-circle-fill" aria-hidden="true"></span>
<span class="hds-icon hds-icon--error-fill" aria-hidden="true"></span>
<span>Error summary</span>
</div>
<div class="hds-notification__body hds-error-summary__body">
Expand Down

0 comments on commit b681f22

Please sign in to comment.