Skip to content

Commit a9017a9

Browse files
authored
fix: Apply the center alignment to the Badge and Button (#914)
### Issue [SBISSUE-14550](https://sendbird.atlassian.net/browse/SBISSUE-14550) We've used `display: inline-block` inside of the Badge and Button. But it breaks the center alignment in the **FireFox** browser, so need to change to using `display: inline-flex` and add more properties for center alignment ### Fix * Apply the center alignment to the Badge and Button components (in FireFox) [SBISSUE-14550]: https://sendbird.atlassian.net/browse/SBISSUE-14550?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 835fff5 commit a9017a9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/ui/Badge/index.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
height: 20px;
55
min-width: 20px;
66
border-radius: 10px;
7-
display: inline-block;
7+
display: inline-flex;
8+
justify-content: center;
9+
align-items: center;
810
@include themed() {
911
background-color: t(primary-3);
1012
}

src/ui/Button/index.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
border-radius: 4px;
55
box-shadow: none;
66
cursor: pointer;
7-
display: inline-block;
87
font-family: var(--sendbird-font-family-default);
98
padding: 0;
9+
display: inline-flex;
10+
justify-content: center;
11+
align-items: center;
1012

1113
&:hover {
1214
box-shadow: none;

0 commit comments

Comments
 (0)