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

MS Team icon text is missing white space when plugins are icons are in collapsed list #23

Closed
DHaussermann opened this issue Oct 22, 2020 · 7 comments · Fixed by #27
Closed
Assignees
Labels
Type/Bug Something isn't working

Comments

@DHaussermann
Copy link

When MS teams calling is enabled along with several others, there is missing white space between the plugin icon and title

Screen Shot 2020-10-22 at 2 55 00 PM

@DHaussermann DHaussermann added Triage Type/Bug Something isn't working labels Oct 22, 2020
@DHaussermann
Copy link
Author

@larkox or @hanzei do either of you know if this is in-fact an issue that must be addressed in each plugin repo individually?
As you can can see, 2 other plugins are also affected.

@larkox
Copy link
Contributor

larkox commented Oct 23, 2020

I wonder if there has been any changes in the CSS. What I think is happening here is that SVGs are being treated different as font-icon in terms of spacing. Not 100% sure if where should we fix those.

@larkox
Copy link
Contributor

larkox commented Oct 29, 2020

In order to have proper styling, the elements must have the "icon" class. We can solve this in two different ways:

  • Set the icon class in each plugin, and any new plugin.
  • Set the icon class at the parent element in the webapp code, and update the plugins that use the icon class already, so it is not applied twice.

Thoughts?

@hanzei
Copy link
Collaborator

hanzei commented Nov 2, 2020

Option 2. seems like the right way to me. Plugins shouldn't rely on some CSS class that the webapp uses.

@lieut-data
Copy link

Agree with @hanzei that we would ideally not be brittle in depending on CSS classes, but I admit that ship has probably long since sailed. Can we do "both" somehow, by having the plugin conditionally add the icon class if it intends to support older Mattermost server versions? It would be a shame for new versions of a plugin to appear broken for months until the changes in the webapp get into production.

@larkox
Copy link
Contributor

larkox commented Nov 3, 2020

If we were to do both, we would have to change "all the plugins". Is it something we want to do?

For short term I will just add the icon class to MSTeams, and if we agree on a long term solution, we can file the needed tickets both in the main product and each of the plugins.

@lieut-data
Copy link

@larkox, could we only change the plugins that "use the icon class already", as proposed in Option 2? Effectively allowing those plugins to continue to support older webapp versions than the one in which this class fix will ship?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type/Bug Something isn't working
Projects
None yet
5 participants