Skip to content
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

b:alert icons barely visible in some themes #731

Closed
chongma opened this issue Apr 25, 2017 · 9 comments
Closed

b:alert icons barely visible in some themes #731

chongma opened this issue Apr 25, 2017 · 9 comments

Comments

@chongma
Copy link
Collaborator

chongma commented Apr 25, 2017

#650 has been closed and i cannot reopen so i am creating a new issue. this still does not work on my system and i have created a test to show this in https://github.com/chongma/test choose test->Alert. you will (hopefully!) see that there is no icon on a b:alert for the flatly theme. i have set the flatly theme in web.xml. if you remove the flatly theme declaration it works fine and shows an icon.

@chongma
Copy link
Collaborator Author

chongma commented Apr 25, 2017

2017-04-25-02 48 03-pm

@stephanrauh
Copy link
Collaborator

The icon is there. It just happens to have exactly the same color as the background.

@stephanrauh
Copy link
Collaborator

@TheCoder4eu Is it possible to generate theme-specific CSS rules with our Gradle script? In this case, a white icon looks great. But this should only apply to the flatly theme, not to the other themes.

@TheCoder4eu
Copy link
Owner

Well , it isn't exactly a bug, but a css issue...
I'll have a look in the Gradle build to see if we can override on a per theme basis.

@chongma
Copy link
Collaborator Author

chongma commented Apr 26, 2017

is the icon not provided from the theme? is it possible to use an icon colour that works for all themes?

@stephanrauh
Copy link
Collaborator

Changing the icon color possibly amounts to deviate from the Bootstrap default. I'd like to avoid that. I'm fine with it on a per-theme basis, but not generally.

I don't think the icon is provided by the theme. We've hard-coded the name of the icon in the b:alert component. The icon itself is a Glyphicon (or maybe an icon from Font Awesome, I don't remember which).

TheCoder4eu added a commit that referenced this issue Apr 28, 2017
@TheCoder4eu
Copy link
Owner

@stephanrauh , @chongma , I just committed a solution which will allow for a per-Theme customization of CSS rules that need to be fixed on the themes.

Since the problem was affecting the following Bootswatch Themes:
cosmo, cyborg, darkly, flatly, lumen, readable, sandstone, slate, superhero, yeti,
this is what I done:

  • i split the customizations.less file in customizations.less and theme-customizations.less
  • I added a bw subfolder in gradleResources/staticResources/less/bw
  • this folder contain a subfolder for all the aforementioned themes
  • every theme subfolder contains a theme-customizations.less that from now on will contain theme specific customizations (it contains just Alert icons CSS rules for now)

@TheCoder4eu TheCoder4eu changed the title b:alert icons with flatly theme b:alert icons barely visible in some themes Apr 28, 2017
@TheCoder4eu TheCoder4eu added this to the v1.1.0 milestone Apr 28, 2017
@chongma
Copy link
Collaborator Author

chongma commented Apr 28, 2017

Sounds great. Will it be in RC2? Also I wondered if it is possible to specify the theme per page or even per component. It would help for testing especially

@TheCoder4eu
Copy link
Owner

Yes you can see it in the staging showcase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants