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

Added notice #119

Merged
merged 6 commits into from
Jan 4, 2022
Merged

Added notice #119

merged 6 commits into from
Jan 4, 2022

Conversation

dbayly-freshworks
Copy link
Collaborator

@dbayly-freshworks dbayly-freshworks commented Jan 4, 2022

Screen Shot 2022-01-04 at 10 25 17 AM

Copy link
Contributor

@arranfw arranfw left a comment

Choose a reason for hiding this comment

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

We should be able to match designs a bit closer with some changed margins, border radius and icon size. I think it could be worthwhile to abstract this into an alert component (with a single variant for now)

Placing the alert in the same div as the checkbox should help with spacing and will prevent the extra divider from showing

apps/web/src/components/submission/components/Review.tsx Outdated Show resolved Hide resolved
import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

export const Advisory: React.FC = ({ children }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we call this Alert to match the BC gov term? https://developer.gov.bc.ca/Design-System/Alert-Banners

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, but I feel weird about it for a couple reasons.

  1. Alert is already an html tag name, and does something very different
  2. The BC gov alert component has a lot more features/functions that what this component does. It feels like either a mismatched component or a fair bit of scope creep.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's just different variants and accessibility features isn't it? I think we should implement as much as is reasonable, accessibility stuff is pretty important but we don't need the other variants for now (warning/error/etc..)

@@ -22,6 +23,7 @@ import {
deploymentDurationOptions,
placementOptions as allPlacementOptions,
} from '../validation/preferences';
import { Alert } from '../../Alert';
Copy link
Contributor

@arranfw arranfw Jan 4, 2022

Choose a reason for hiding this comment

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

Last small comment, could you add alert to components/index.ts and add this import to the other component imports on L1?

Copy link
Contributor

@arranfw arranfw left a comment

Choose a reason for hiding this comment

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

🥳

@dbayly-freshworks dbayly-freshworks merged commit 1c460e2 into main Jan 4, 2022
@dbayly-freshworks dbayly-freshworks deleted the EHPR-156_add_notice branch January 4, 2022 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants