[
https://issues.apache.org/jira/browse/TRINIDAD-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13765214#comment-13765214
]
Anand V Nath commented on TRINIDAD-2415:
----------------------------------------
Jeanne,
This affects selectors like ".AFSomeAlias af|style-icon" or ".AFSomeAlias
af|style-icon:hover" which do not represent an Icon selector. We are throwing
the warning about this in the console, but as you explain we do not make it
evident to the user. So I agree that we should continue to support this.
However I will ask the developer using this to change it.
The selectors like ".AFSomeAlias af|style-icon" which actually represent an
Icon will not be rendered into the css file. Such selectors are used from
RenderingContext.getIcon() method which documents the following:
* @param iconName, should not contain the '.' prefix or ':alias' suffix
* even though the selector name contained it
Looks like the aim of removing the leading dot from the selector is to target
the "Icon:alias" selectors. So I do not see how the fix I uploaded will affect
anything.
I do not see this problem if the user uses ".AFSomeAlias af|foo-icon-style"
because in this case we do not consider this as an Icon style. We do not strip
the leading dot for such selectors. It happens only for selectors that qualify
as an icon selector which is by ending with "-icon" or containing "-icon:hover"
or by containing "Icon:alias"
Do you see any other use cases I need to test / consider?
> nested selectors not generated correctly when used with icon selectors
> ----------------------------------------------------------------------
>
> Key: TRINIDAD-2415
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2415
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Skinning
> Affects Versions: 2.1.0-core
> Reporter: Anand V Nath
> Attachments: jira-2415.patch
>
>
> This bug is about a nested selector specified with an "-icon" selector.
> Eg: .AFSomeAlias af|style-icon or .AFSomeAlias af|style-icon:hover
> This gets rendered as
> AFSomeAlias af_style-icon
> AFSomeAlias af_style-icon:hover
> The reason why this happens is that we strip out the leading dot for the icon
> styles. But it is required only for the icon alias cases.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira