You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The language icons in various places currently use long conditional statements to display the different images, it would be good to replace these image references with CSS classes instead (where the CSS class is the language + the variant of the language, if any).
Eventually I would like to see this change (language variant icons) to instead be a single line that uses code along the following lines:
if (variant != null && !variant.isEmpty()) {
// set the img class property to be 'language-variant' (e.g. 'java-android')
} else {
// set the img class property to be 'language' (e.g. 'java')
}
Then move all of the image file references out to CSS, e.g.
The language icons in various places currently use long conditional statements to display the different images, it would be good to replace these image references with CSS classes instead (where the CSS class is the language + the variant of the language, if any).
Eventually I would like to see this change (language variant icons) to instead be a single line that uses code along the following lines:
Then move all of the image file references out to CSS, e.g.
Originally posted by @JonathanGiles in #3797 (comment)
The text was updated successfully, but these errors were encountered: