fix(core-theming): CB-1458 inehrit font-size automatically

This commit is contained in:
Naumov Alexey
2022-01-10 15:00:28 +03:00
parent 77c2c75aad
commit c29bb6f2e8
7 changed files with 8 additions and 8 deletions
@@ -8,9 +8,8 @@
import { observer } from 'mobx-react-lite';
import {
useEffect, useRef, useCallback, ChangeEvent
useEffect, useRef, useCallback, ChangeEvent, useImperativeHandle
} from 'react';
import { useImperativeHandle } from 'react';
import styled, { use } from 'reshadow';
import { Icon, IconOrImage, Loader, useObjectRef } from '@cloudbeaver/core-blocks';
@@ -49,7 +49,6 @@ export const InlineEditorStyles = composes(
display: flex;
& input, & input[disabled], & input[readonly] {
font-size: inherit;
border: none;
border-radius: unset;
width: 100%;
@@ -41,6 +41,7 @@ const styles = composes(
font-weight: 500;
}
input {
font-size: 12px;
padding-right: 24px !important;
}
MenuButton {
@@ -51,6 +51,9 @@ const INPUT_FIELD_STYLES = composes(
height: 100%;
}
}
input {
font-size: 12px;
}
input[disabled] + icon-container {
cursor: auto;
opacity: 0.8;
@@ -18,6 +18,7 @@ import { FormContext } from './FormContext';
const styles = css`
textarea {
font-size: 12px;
line-height: 19px;
}
field[|embedded] {
@@ -57,6 +57,7 @@ export const ITEM_LIST_STYLES = composes(
z-index: 1;
}
list-search {
composes: theme-typography--body1 from global;
position: sticky;
top: 0;
padding: 16px 24px;
@@ -67,10 +68,7 @@ export const ITEM_LIST_STYLES = composes(
}
& input {
font-size: inherit;
padding-top: 4px;
padding-bottom: 4px;
padding-right: 32px;
padding: 4px 32px 4px 8px;
}
& search-button {
@@ -37,7 +37,6 @@
textarea {
box-sizing: border-box;
padding: 7px 12px;
font-size: 12px;
width: 100%;
border: 2px solid;
outline: none;