UI Options and !important
colinbdclark at gmail.com
Mon Jul 4 21:17:40 UTC 2011
In certain cases, UI Options needs to be able to override the styling of a page, regardless of any customizations performed by the site's designer. In previous releases of Infusion, we made the mistake of shipping FSS with strategically placed !important declarations, which made it easy for UI Options to win but more difficult to customize an FSS theme.
Here's the JIRA that covers this issue:
In Infusion 1.4, we have removed the pesky !important declarations from the FSS. Instead, UI Options will use special versions of the themes, which will automatically include the necessary overrides. We'll generate these special stylesheets directly from the FSS themes at build time.
Here are our next steps:
1. Determine the list of declarations that require !important to be added to them.
4. Write unit tests for the code that can be run in the browser.
5. Link the parser to our build process and add a task to the system for generating these UIO-specific stylesheets.
We're working on the code in Michelle's Github Infusion fork:
Technical Lead, Fluid Project
More information about the fluid-work