-
Notifications
You must be signed in to change notification settings - Fork 404
RI-7598 Change visuals of the "Import sample data" popover #5036
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
Changes from all commits
4a8f13d
c5e601e
ce0a625
464c02a
faa04e5
8fa8548
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ import { truncateText } from 'uiSrc/utils' | |
import { FlexItem, Row } from 'uiSrc/components/base/layout/flex' | ||
import { TitleSize, Title } from 'uiSrc/components/base/text/Title' | ||
import { Text } from 'uiSrc/components/base/text' | ||
import { Spacer } from 'uiSrc/components/base/layout' | ||
import { RiBadge } from 'uiSrc/components/base/display/badge/RiBadge' | ||
|
||
import styles from '../styles.module.scss' | ||
|
@@ -31,10 +32,9 @@ const Notification = (props: Props) => { | |
> | ||
{notification.title} | ||
</Title> | ||
|
||
<Spacer size="s" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<Text | ||
size="s" | ||
color="subdued" | ||
className={cx('notificationHTMLBody', styles.notificationBody)} | ||
data-testid="notification-body" | ||
> | ||
|
@@ -43,7 +43,7 @@ const Notification = (props: Props) => { | |
|
||
<Row className={styles.notificationFooter} align="center" justify="start"> | ||
<FlexItem> | ||
<Text size="xs" color="subdued" data-testid="notification-date"> | ||
<Text size="xs" data-testid="notification-date"> | ||
{format(notification.timestamp * 1000, NOTIFICATION_DATE_FORMAT)} | ||
</Text> | ||
</FlexItem> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
.popover { | ||
min-width: 380px !important; | ||
} | ||
|
||
.buttonWrapper { | ||
.loadDataBtn { | ||
height: 36px !important; | ||
|
||
:global(.euiButton__text) { | ||
font-size: 14px !important; | ||
font-weight: 400 !important; | ||
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,24 +261,30 @@ const RemoveListElements = (props: Props) => { | |
/> | ||
</FormField> | ||
</FlexItem> | ||
<FlexItem grow style={{ width: '100%' }}> | ||
<FormField | ||
additionalText={!canRemoveMultiple ? InfoBoxPopover() : <></>} | ||
> | ||
<TextInput | ||
name={config.count.name} | ||
id={config.count.name} | ||
maxLength={200} | ||
placeholder={config.count.placeholder} | ||
value={count} | ||
data-testid="count-input" | ||
autoComplete="off" | ||
onChange={handleCountChange} | ||
ref={countInput} | ||
disabled={!canRemoveMultiple} | ||
/> | ||
</FormField> | ||
</FlexItem> | ||
<Row grow> | ||
<FlexItem grow> | ||
<FormField> | ||
<TextInput | ||
name={config.count.name} | ||
id={config.count.name} | ||
maxLength={200} | ||
placeholder={config.count.placeholder} | ||
value={count} | ||
data-testid="count-input" | ||
autoComplete="off" | ||
onChange={handleCountChange} | ||
ref={countInput} | ||
disabled={!canRemoveMultiple} | ||
/> | ||
</FormField> | ||
</FlexItem> | ||
|
||
{!canRemoveMultiple ? ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<FlexItem>{InfoBoxPopover()}</FlexItem> | ||
) : ( | ||
<></> | ||
)} | ||
</Row> | ||
</Row> | ||
</FlexItem> | ||
</EntryContent> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,8 @@ import { | |
} from 'uiSrc/components/base/forms/buttons' | ||
import { Text } from 'uiSrc/components/base/text' | ||
import { RiPopover } from 'uiSrc/components/base' | ||
import styles from '../../styles.module.scss' | ||
import { Row } from 'uiSrc/components/base/layout/flex' | ||
import { Spacer } from 'uiSrc/components/base/layout' | ||
|
||
interface ConfirmOverwriteProps { | ||
isOpen: boolean | ||
|
@@ -37,8 +38,8 @@ const ConfirmOverwrite = ({ | |
You already have the same JSON key. If you proceed, a value of the | ||
existing JSON key will be overwritten. | ||
</Text> | ||
|
||
<div className={styles.confirmDialogActions}> | ||
<Spacer size="l" /> | ||
<Row justify="end" gap="m"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<SecondaryButton | ||
aria-label="Cancel" | ||
size="small" | ||
|
@@ -56,7 +57,7 @@ const ConfirmOverwrite = ({ | |
> | ||
Overwrite | ||
</PrimaryButton> | ||
</div> | ||
</Row> | ||
</RiPopover> | ||
) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,22 +35,5 @@ | |
} | ||
|
||
.popoverLikeTooltip { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the actual change related to this PR. Sorry for the other minor fixes and refactoring. |
||
border: none; | ||
max-width: 267px !important; | ||
background-color: var(--euiTooltipBackgroundColor) !important; | ||
.euiPopover__panelArrow.euiPopover__panelArrow--bottom:after { | ||
border-bottom-color: var(--euiTooltipBackgroundColor) !important; | ||
} | ||
|
||
.euiPopover__panelArrow.euiPopover__panelArrow--right:after { | ||
border-right-color: var(--euiTooltipBackgroundColor) !important; | ||
} | ||
|
||
.euiPopover__panelArrow.euiPopover__panelArrow--left:after { | ||
border-left-color: var(--euiTooltipBackgroundColor) !important; | ||
} | ||
|
||
.euiPopover__panelArrow.euiPopover__panelArrow--top:after { | ||
border-top-color: var(--euiTooltipBackgroundColor) !important; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bonus Points: Not related to the changes of the popover colors, but I fixed this minimal spacing issue as well.