Skip to content

Commit

Permalink
feat(design): set default text color to prevent inheritance (#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Apr 1, 2024
1 parent 37a7787 commit 71e1d94
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/design/src/components/input/index.module.less
Expand Up @@ -67,6 +67,8 @@
border: none;
outline: none;

background-color: rgb(var(--bg-color-secondary));

&[disabled] {
cursor: inherit;
color: rgb(var(--grey-200));
Expand Down
1 change: 1 addition & 0 deletions packages/design/src/themes/theme-root.module.less
@@ -1,4 +1,5 @@
.theme {
color: rgb(var(--text-color));
font-family:
Inter,
-apple-system,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/views/components/doc-bars/Toolbar.tsx
Expand Up @@ -127,7 +127,7 @@ export function Toolbar(props: IToolbarProps) {

const collapsedId: string[] = [];

let currentWidth = 168;
let currentWidth = 182;
for (const item of itemWidths) {
currentWidth += item.width;

Expand Down
9 changes: 6 additions & 3 deletions packages/ui/src/views/components/doc-bars/index.module.less
Expand Up @@ -104,7 +104,6 @@

&-container {
display: grid;
gap: var(--margin-xs) 0;

box-sizing: border-box;
padding: var(--padding-sm);
Expand All @@ -116,8 +115,12 @@
.toolbar-group {
flex-wrap: wrap;

&:not(:last-child)::after {
content: initial;
&:not(:last-child) {
margin-bottom: var(--margin-xs);

&::after {
content: initial;
}
}
}
}
Expand Down

0 comments on commit 71e1d94

Please sign in to comment.