Skip to content

Commit 486d4d5

Browse files
authored
Use compound Button styles for Jitsi button (#31159)
* Use compound styles for jitsi button * lint
1 parent 54f967e commit 486d4d5

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

src/vector/jitsi/index.pcss

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Please see LICENSE files in the repository root for full details.
77

88
/* TODO: Match the user's theme: https://github.com/element-hq/element-web/issues/12794 */
99

10+
@import url("@vector-im/compound-design-tokens/assets/web/css/compound-design-tokens.css");
1011
/* Path to `res` dir in the source tree */
1112
$res: ../../../res;
1213

@@ -70,16 +71,22 @@ html {
7071
}
7172

7273
#joinButton {
73-
/* A mix of AccessibleButton styles */
74-
cursor: pointer;
75-
padding: 7px 18px;
74+
/* Copy of Compound Button styles */
75+
border: 1px solid var(--cpd-color-bg-action-primary-rest);
76+
color: var(--cpd-color-text-on-solid-primary);
77+
background-color: var(--cpd-color-bg-action-primary-rest);
78+
padding-block: var(--cpd-space-2x);
79+
padding-inline: var(--cpd-space-8x);
80+
min-block-size: var(--cpd-space-12x);
7681
text-align: center;
77-
border-radius: 4px;
78-
display: inline-block;
79-
font-size: 14px;
80-
color: #ffffff;
81-
background-color: #03b381;
82-
border: 0;
82+
border-radius: 24px;
83+
display: inline-flex;
84+
align-items: center;
85+
justify-content: center;
86+
font: var(--cpd-font-body-lg-semibold);
87+
border: none;
88+
word-break: keep-all;
89+
cursor: pointer;
8390
}
8491

8592
.icon {

0 commit comments

Comments
 (0)