twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

Home Page:https://getbootstrap.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System UI font not used on WebKit

qvignaud opened this issue · comments

Prerequisites

Describe the issue

On WebKit the system font is not called by Bootstrap, making some apps using Bootstrap and WebKit looking “weird” and not well-integrated on Linux systems, such as projects built with Tauri.

While this is mostly due to WebKit not supporting system-ui value yet (https://bugs.webkit.org/show_bug.cgi?id=178624), Bootstrap should probably use -webkit-system-ui within the default $font-family-sans-serif list.

As such, here are examples on Linux Mint with WebKitGTK 2.38.6.

Not-integrated display:
without_system_ui
Well-integrated display:
with_system_ui

Please let me know if I should open a PR as the change seems simple, but may impact many things that I don't even have knowledge of.

Reduced test cases

N/A because not reproducible that way

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

No response

What version of Bootstrap are you using?

v5.1.3

This was discussed years ago with the very different Linux default font causing unexpected and inconsistent rendering issues. https://fonts.google.com/specimen/Ubuntu is the font I believe, and it's just so different looking. There are some old threads somewhere here that I can't find right now, but changes were made to deliberately not support that font.