mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
INS-674 - First pass at making the send button more visible (#3414)
* INS-674 - First pass at making the send button more visible * [wip] adds rect for send button * Update colors in the SVG to match send button * Update the gRPC send button to also use theme colors * Adding left margin to send button Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com> Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com> Co-authored-by: Opender Singh <opender.singh@konghq.com>
This commit is contained in:
parent
25ac42eb23
commit
4c1475936c
@ -12,8 +12,9 @@ interface Props {
|
|||||||
|
|
||||||
const buttonProps: ButtonProps = {
|
const buttonProps: ButtonProps = {
|
||||||
className: 'tall',
|
className: 'tall',
|
||||||
|
bg: 'surprise',
|
||||||
size: 'medium',
|
size: 'medium',
|
||||||
variant: 'text',
|
variant: 'contained',
|
||||||
radius: '0',
|
radius: '0',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -69,6 +69,10 @@ class Theme extends PureComponent<Props, State> {
|
|||||||
height="10%"
|
height="10%"
|
||||||
className="theme--pane__header--sub bg-fill"
|
className="theme--pane__header--sub bg-fill"
|
||||||
/>
|
/>
|
||||||
|
{/* Send Button */}
|
||||||
|
<g>
|
||||||
|
<rect x="53%" y="10%" width="9%" height="10%" className="surprise-fill" />
|
||||||
|
</g>
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
{/* Sidebar */}
|
{/* Sidebar */}
|
||||||
|
@ -26,8 +26,11 @@
|
|||||||
.urlbar__send-btn {
|
.urlbar__send-btn {
|
||||||
padding-right: var(--padding-md);
|
padding-right: var(--padding-md);
|
||||||
padding-left: var(--padding-md);
|
padding-left: var(--padding-md);
|
||||||
|
margin-left: 0.75em;
|
||||||
min-width: 5em;
|
min-width: 5em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
background: var(--color-surprise);
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
@ -48,7 +51,7 @@
|
|||||||
|
|
||||||
button:focus,
|
button:focus,
|
||||||
button:hover {
|
button:hover {
|
||||||
background-color: var(--hl-xs);
|
filter: brightness(0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
& > .dropdown > button {
|
& > .dropdown > button {
|
||||||
|
@ -8,12 +8,17 @@ export const ButtonSizeEnum = {
|
|||||||
Medium: 'medium',
|
Medium: 'medium',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
// These variants determine how the `bg` color variable is handled
|
||||||
|
// Outlined sets the `bg` color as an outline
|
||||||
|
// Contained sets the `bg` color as the background color
|
||||||
|
// Text sets the `bg` color as the text color
|
||||||
export const ButtonVariantEnum = {
|
export const ButtonVariantEnum = {
|
||||||
Outlined: 'outlined',
|
Outlined: 'outlined',
|
||||||
Contained: 'contained',
|
Contained: 'contained',
|
||||||
Text: 'text',
|
Text: 'text',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
// Sets the `bg` color to a themed color
|
||||||
export const ButtonThemeEnum = {
|
export const ButtonThemeEnum = {
|
||||||
Default: 'default',
|
Default: 'default',
|
||||||
Surprise: 'surprise',
|
Surprise: 'surprise',
|
||||||
|
Loading…
Reference in New Issue
Block a user