If you could add something to Kentico, what would it be and why?

Can we get a Microsoft Edge specific body class instread of the 'Chrome' and 'Safari' classes?

Hi Kentico,

On https://docs.kentico.com/k10/developing-websites/designing-websites-using-css there is a table with the body classes that are generated based on the browser the client is viewing the project in.

Can you explain why the Microsoft Edge browser and the Google Chrome browser bot get the Chrome and Safari body class. Why isn't a Microsoft Edge specific class generated and is this maybe something you can add in the near future? It would be great to have a 'Edge' class or something like that.

Best regards,
Sander Bras

26 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Sander BrasSander Bras shared this idea  ·   ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Suneel JhangianiSuneel Jhangiani commented  · 

        Ideally people are now checking for browser features rather than trying to target on a browser type. However, you can use RAW Javascript to get check the browser type:

        For Edge:

        window.navigator.userAgent.indexOf("Edge") > -1

        For IE 10 in Edge mode:

        window.navigator.userAgent.indexOf("Trident") > -1

        You could use this with jQuery to easily replace the chrome and safari classes.

      Feedback and Knowledge Base