Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(design): set default text color to prevent inheritance #1751

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/design/src/components/input/index.module.less
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading