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

feat(components): Update Alert component styles #2160

Conversation

flacial
Copy link
Member

@flacial flacial commented Aug 6, 2022

Closes #2145

Problem

Bootstrap alert-danger class need the base class alert for the element to have a background color. What's currently happening, We're applying the color alert-danger without the base styles from alert which doesn't seem to be working.

image

Solution

Add alert class to the div containing the alert component elements.

  • From alert-danger to alert alert-danger.

Other changes

  • Align the items to the center
  • Change img element to next/image because next/image has better performance and automatic image optimizations.
  • Update info type styles (top is old style, bottom is new styles)
    infoAlert
  • Update urgent type styles
    urgentAlert

- Fix the background issue with the urgent type
- Update info and urgent styles
- Change `img` tag to `next/image` as it's better in terms of performance
- Add a class to change the image color with `filter` to purple
@vercel
Copy link

vercel bot commented Aug 6, 2022

@flacial is attempting to deploy a commit to the c0d3-prod Team on Vercel.

A member of the Team first needs to authorize it.

@codecov
Copy link

codecov bot commented Aug 6, 2022

Codecov Report

Merging #2160 (31d6653) into master (06cb15d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2160   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          171       171           
  Lines         2950      2950           
  Branches       796       796           
=========================================
  Hits          2950      2950           
Impacted Files Coverage Δ
components/Alert/Alert.tsx 100.00% <100.00%> (ø)

@vercel
Copy link

vercel bot commented Aug 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
c0d3-app ✅ Ready (Inspect) Visit Preview Aug 20, 2022 at 2:24PM (UTC)

@SlyBouhafs
Copy link
Member

I like the new styles!

@flacial flacial merged commit 14b9a56 into garageScript:master Aug 20, 2022
@flacial flacial deleted the 2145-broken-urgent-alert-message-background branch August 20, 2022 14:37
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.

Broken urgent alert message background
3 participants