I have some boxes on my dashboard body. But the thing is, I want to make my Shiny looks like a white page with something to display instead of having some boxes separate them. I already use CSS to change my background as white colors, is it possible to change the box lines into white colors or invisible?
Also can I change my Valid statuses to white one as well? At the moment they only have
primary Blue (sometimes dark blue)
success Green
info Blue
warning Orange
danger Red
Pictures with two boxes:
Related
I am developing a web-based application using JSF 2.3 Mojarra with PrimeFaces 7. My problem is that the error messages, which I define everywhere as
<p:message for="...">
<p:autoUpdate/>
</p:message>
are sown in a different style depending on the page I am currently showing. I suspect this is due to some custom style(s) I use, but I am not sure.
I have the following cases:
1.) Two messages are shown, one of which disappears shortly after being shown. Both messages are shown in white color having a red background:
2.) Two messages are shown, one of which disappears shortly after being shown. This time one of them has its text in white and a background in red, while the other has its text in red, and the background in white:
3.) And, I have two more cases as well (however they appear on different pages)
3a.) Only one message is shown with its text in red and without an own background color - meaning that the background color is inherited from parent (which is white)
3.b) Only one message in shown with the text in white, and with a red background color.
Is there a way that I show ALL messages as in the case in (3a.)?
Regarding color contrast:
In this example, do I need to be careful of the blue background even though there is no copy directly on top of it? I.e. do I only need to be concerned with background color when there is copy on top of it, and I could hide the element with the background color from screen readers without causing an issue?
And in this one, do I need to be careful of the contrast between the light blue background and the button or am I only concerned with the contrast between the copy and the button? (I know the image is blurry. It's just an example.)
Both examples are fine as they are.
There are two things that are applicable here.
The first is contrast between text and the background for that text - you must have a contrast ratio of 4.5:1 for normal text and 3:1 for large text / bold text to be WCAG AA compliant. In the first example it is essentially black on white so it will pass easily.
The second is for controls. Buttons, inputs etc. should have a contrast ratio with their background of 3:1 minimum, no matter what state they are in (so if your above button turned white with black text on hover it probably wouldn't pass). In your second example your button is black on light blue so it certainly passes this also.
Also worth noting is that text within controls (your button) has the same 4.5:1 contrast requirement. Yet again white on black passes easily so you are fine.
Just check the contrast (almost certainly fine) on the red button with white text, reds and oranges can be deceiving in their contrast ratios (but as it is quite a dark red I am 99% sure you are fine just by looking at it).
For clarity your blue background in the first one could be 1% darker than the white box and it would be fine as it is not an interactive control that it surrounds.
I'm currently coding a design mockup into HTMl and I'm trying to figure out the best way to achieve this look responsively. As you see, there's a purple line that stems from the hero CTA button in the bottom right corner. How would I go about changing the line color when it enters the new section; purple to white?
I thought about making two separate lines, but It's difficult to always have them line up right. I wonder if there's some sort of masking trick?
I added a red circle to show the interlacing I'm having issues with.
Screenshot
Can we change the color in navigation from black to the color white?
You can't do that. And Apple recommend developers to use black background color.
I answered some days ago here How can I edit top status bar at AppleWatch?
It is impossible to edit the status bar appearance. There are some strong restrictions:
Status bar cannot be hidden
There are not ability to modify the black background
You cannot add or modify the back button or another image
The only thing you can do is to change the title color using tint color in your storyboard and the text both of through storyboard and source code.
There's no API to change the navigation bar's background colour right now. Ideally, your app's background colour would also be black. Check out the HIG for details: https://developer.apple.com/watch/human-interface-guidelines/
In my web applicaton I have some div that contain labels, when I click on a label it's foreground become blue and background become white.how can I prevent that?
I would avoid disabling user select colours. I don't know about other people but I often select text on websites, not because I want to copy it but because I am struggling to read it and selecting text is by far the easiest way to change the colour of text against it's background. I even sometimes do it with black text on a white background.