-
Notifications
You must be signed in to change notification settings - Fork 406
#RI-6554 - update icons and connectivity buttons #4292
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
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 |
---|---|---|
|
@@ -2,29 +2,72 @@ | |
font-weight: 400 !important; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.cloudIcon { | ||
margin-right: 8px; | ||
.cloudSection { | ||
.typeBtn { | ||
min-width: 160px !important; | ||
} | ||
} | ||
|
||
.typeBtn { | ||
position: relative; | ||
width: 100%; | ||
height: 76px !important; | ||
height: 84px !important; | ||
padding: 0 12px; | ||
|
||
border-color: var(--separatorColorLight) !important; | ||
color: var(--buttonSecondaryTextColor) !important; | ||
box-shadow: none !important; | ||
|
||
&.primary { | ||
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. Looks like we still have a component that uses 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. yes, removed |
||
border-color: var(--euiColorSecondary) !important; | ||
&.small { | ||
padding: 0 8px; | ||
height: 52px !important; | ||
|
||
:global(.euiButton__text) { | ||
flex-direction: row; | ||
} | ||
|
||
.btnIcon { | ||
margin-right: 8px; | ||
} | ||
} | ||
|
||
&:hover { | ||
background-color: transparent !important; | ||
} | ||
} | ||
|
||
.star { | ||
margin-right: 4px; | ||
:global(.euiButton__text) { | ||
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. Question: why do we need 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. since there is a global class, not scoped |
||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
font-weight: 400 !important; | ||
} | ||
|
||
&:not(.small) { | ||
.btnIcon { | ||
margin-bottom: 8px; | ||
|
||
&.rocket { | ||
fill: currentColor; | ||
height: 24px; | ||
width: 24px; | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
.freeBadge { | ||
position: absolute; | ||
top: 0; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
z-index: 1; | ||
|
||
text-transform: uppercase; | ||
background-color: var(--euiColorLightestShade); | ||
border: 1px solid var(--euiColorPrimary); | ||
border-radius: 2px !important; | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react' | ||
import { EuiIcon } from '@elastic/eui' | ||
import { AddDbType } from 'uiSrc/pages/home/constants' | ||
|
||
import ShieldIcon from 'uiSrc/assets/img/shield.svg?react' | ||
import RedisSoftwareIcon from 'uiSrc/assets/img/redis-software.svg?react' | ||
|
||
export interface Values { | ||
connectionURL: string | ||
} | ||
|
||
export const CONNECTIVITY_OPTIONS = [ | ||
{ | ||
id: 'sentinel', | ||
title: 'Redis Sentinel', | ||
type: AddDbType.sentinel, | ||
icon: (props: Record<string, any> = {}) => <ShieldIcon {...props} /> | ||
}, | ||
{ | ||
id: 'software', | ||
title: 'Redis Software', | ||
type: AddDbType.software, | ||
icon: (props: Record<string, any> = {}) => <RedisSoftwareIcon {...props} /> | ||
}, | ||
{ | ||
id: 'import', | ||
title: 'Import from file', | ||
type: AddDbType.import, | ||
icon: (props: Record<string, any> = {}) => <EuiIcon type="importAction" {...props} /> | ||
} | ||
] |
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.
Haven't tested, but isn't
grow={false}
=grow={0}
?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.
no, there are type FlexItemGrowSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | true | false | null;