Skip to content

Commit

Permalink
fix: remove unnecessary selector specificity from font-family setting (
Browse files Browse the repository at this point in the history
…#292)

### 🎯 Goal

Fix this issue:
GetStream/stream-chat-angular#603

### 🛠 Implementation details

The `font-family` setting is inherited, so there is no need for the
extra ` *` selector, which can make integrators' lives harder.

### 🎨 UI Changes

_Add relevant screenshots_

Make sure to test with both Angular and React (with both `MessageList`
and `VirtualizedMessageList` components) SDKs
  • Loading branch information
szuperaz committed Apr 25, 2024
1 parent c322fb7 commit 04e110d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/v2/styles/_base.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
.str-chat {
box-sizing: border-box;
font-family: var(--str-chat__font-family);

* {
font-family: var(--str-chat__font-family);
box-sizing: border-box;
}

// Overriding styles of ngx-popperjs/ngx-float-ui
.ngxp__container, .float-ui-container {
.ngxp__container,
.float-ui-container {
z-index: 1;
padding: 0 !important;
box-shadow: none !important;
Expand Down

0 comments on commit 04e110d

Please sign in to comment.