Giter VIP home page Giter VIP logo

Comments (7)

DHaussermann avatar DHaussermann commented on August 10, 2024

@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.

from mattermost-plugin-msteams-meetings.

larkox avatar larkox commented on August 10, 2024

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.

from mattermost-plugin-msteams-meetings.

larkox avatar larkox commented on August 10, 2024

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?

from mattermost-plugin-msteams-meetings.

hanzei avatar hanzei commented on August 10, 2024

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

from mattermost-plugin-msteams-meetings.

lieut-data avatar lieut-data commented on August 10, 2024

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.

from mattermost-plugin-msteams-meetings.

larkox avatar larkox commented on August 10, 2024

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.

from mattermost-plugin-msteams-meetings.

lieut-data avatar lieut-data commented on August 10, 2024

@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?

from mattermost-plugin-msteams-meetings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.