-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Fixes #4242 so that css file doesn't make the warning message look scary #4462
Fixes #4242 so that css file doesn't make the warning message look scary #4462
Conversation
@AweysAhmed I'll take a better look at this tomorrow. My initial thoughts are 'but I think there are other warnings, that might need more than plain text', and 'maybe we need a different name for this to indicate that it's a low-intensity warning'. |
That is a good point. I was thinking of changing the class CSS class name to |
May i suggest that, instead, you create a new class for div.low_priority_warning, and leave div.warning as it was. That way, if there is anything else that is using the warning class, it won't be affected. |
Thank you. That makes sense. I'll make that change. |
I forgot to mention that the current So maybe we should create the |
Sure -- if we're sure it's not used elsewhere. I know there are other warning-type messages, but they may be using a different class. |
@cielf @dorner I have added a missing screenshot and double-checked to make sure the CSS class Since we are only using it the erb files that I have changed I have renamed the CSS class to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@AweysAhmed: Your PR |
Resolves #4242
Description
This PR updates the CSS so that they warning text appears in plaintext and not in red.
Type of change
How Has This Been Tested?
I tested this changes locally to ensure removing the text-colour changes the warning message to black or close to black.
In order to test this out you will need to
set up a new distribution (Distributions | New Distribution) , a new donation (Donation |New Donation), and a new purchase (Purchases | New Purchase) that are all using a particular item (e.g. Adult Briefs L/XL)
then go into Inventory | Inventory Adjustments
Enter new Inventory Adjustments to take the levels for that item for each storage location down to 0
Go to Inventory|Items & Inventory
Deactivate the item
Go to Distributions
you should see a "Has Inactive Items" message. The style of this has has be changed
click View on that item, and scroll to the bottom
you should see a message indicating why you can't correct this. The style of this message has be changed
Go to Donations
Click view on the donation you entered and scroll to the bottom
you should see a message indicating why you can't correct this. The style of this message has be changed
Go to Purchases
Click view on the purchase you entered and scroll to the bottom
you should see a message indicating why you can't correct this. The style of this message has be changed
Before
After