UX: General chat composer tweaks (#21639)

- prevent hover on disabled state
- more contrast between focus and not focus for send button
This commit is contained in:
chapoi 2023-05-18 22:15:10 +09:00 committed by GitHub
parent ed123c7cec
commit 7444ab006d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 2 deletions

View File

@ -6,6 +6,17 @@
}
}
.chat-composer.is-disabled {
.no-touch & {
.chat-composer-dropdown__trigger-btn:hover {
cursor: default;
.d-icon {
color: var(--primary-low-mid);
}
}
}
}
.chat-composer-dropdown__trigger-btn {
.d-icon {
padding: 5px;
@ -13,6 +24,10 @@
color: var(--primary-high);
background: var(--secondary-very-high);
border-radius: 100%;
.is-disabled & {
color: var(--primary-low-mid);
}
}
.no-touch & {

View File

@ -73,6 +73,12 @@
}
}
.chat-composer.is-focused.is-send-disabled & {
.d-icon {
color: var(--primary-high);
}
}
.chat-composer.is-sending & {
animation: sendingScales 1s infinite linear;
}
@ -101,7 +107,7 @@
cursor: default;
.d-icon {
color: var(--primary-high);
color: var(--primary-low-mid);
}
&:hover {
@ -127,7 +133,6 @@
align-items: center;
box-sizing: border-box;
width: 100%;
padding: 0 5px;
align-self: stretch;
}