Should background and text color classes not be important?

Locked
djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

02 Apr 2016, 00:16

In some cases one want to override a background color pr text color and for consistency use same classes like _OrangeBack_.

This class has no effect in case a different rule has a background assigned to current component. Since it is not using _!important_ statement.
For instance i have a PrimeFaces styled datatable and in footer i want to have different background for certain cells.

This is usefull to style PrimeUI/Faces components differently than default theme.

Example:

Code: Select all

<div class="ui-datatable">
	<div class="ui-datatable-tablewrapper">
		<table>
			<tr>
				<td class="OrangeBack"></td>
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0


Locked

Return to “Adamantium”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests