Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Our button style consistency has definitely improved over time, but there are a few places on the dashboard where the styling is still a bit splintered. In the above screenshot, you can view a few distinct button styles:
Show Details
button, with a background of our primary color (#8c1515
) and a text color of white. Let's call this a Primary Button.Logout
button, with a slight gray background and a text color of our primary color. Let's call this a Link Button.
Score
andProgress
report buttons, which have a drop shadow and grey-ish coloring. Let's call this a Raised ButtonEdit
cog button, which reacts on hover and normally has a primary color background, but loses that background on click and is a bit less visible. This behavior is likely due to the conflicting styles we have declared in custom button styling and PrimeVue's own stylesheets.This is just on one section of one page, and we have many other button variants in other parts of the app (forms, reports). We can greatly improve the feel of our app by unifying these button stylings and the mappings of
styling -> functionality
. By coming into a consistent pattern of button styling to function, we can make it more intuitive for new users learning how to interact with the site.For example, we could chose to find a default variant of button used to expand content. Only use the
primary button
in operations that change the page or force a reload. Whatever we end up on, the most important thing is that there is a rough mapping of the type of button and the function it offers to the user.Styling wise, we can choose to imitate (or even directly use the primevue set of buttons . With these buttons, we can directly pass in props like
link
andoutlined
to style these buttons directly, instead of relying on custom css names.This PR is a work in progress. Feel free to contribute where you would like! Or add any commentary in the below thread.
Thanks for reading!
Types of changes
What types of changes does this pull request introduce?
Checklist
Justification of missing checklist items
Further comments