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

add a CSS class for status to each component element #3980

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

luto
Copy link
Contributor

@luto luto commented Apr 11, 2020

Cachet offers a feature to add additional CSS. This PR builds upon that functionality by enabling users to style components on the main page based on their status. Each component's <li> now gets a status-0 (... status-4) class based on their status.

This can be matched against in CSS using .component.status-1 to target all operational components or .component.status-4 to match ones that are experiencing a major outage.

the class can be used to style components based on their status using
.component.status-1 as a rule. They can then be made bold, have a
different background or be hiddend depending on their status.
@welcome
Copy link

welcome bot commented Apr 11, 2020

Congratulations on opening your first Pull Request, this is a momentous day for you and us! ✨
To help us out, please make sure that you've followed the below:

@ibotty
Copy link

ibotty commented Mar 22, 2021

Any update?

@jbrooksuk jbrooksuk merged commit 2440079 into cachethq:2.4 Mar 29, 2021
@welcome
Copy link

welcome bot commented Mar 29, 2021

Hooray! Your first Pull Request was merged, here's to many more 🚀

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.

3 participants