Skip to content

Commit

Permalink
color updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lghiur committed Jul 15, 2024
1 parent 4460dc8 commit 5ac63e3
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 24 deletions.
2 changes: 1 addition & 1 deletion lib/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/sass/common/sass/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,18 @@ $form-control-addon-padding-left: 10px !default;
$form-control-addon-padding-right: 10px !default;
$form-control-border: $general-border-width solid theme-color('secondary', 'dark') !default;
$form-control-disabled-border: $general-border-width solid theme-color('secondary', 'base-dark') !default;
$form-control-placeholder-color: --color-secondary--dark !default;
$form-control-placeholder-color: var(--color-secondary--dark) !default;
$form-control-disabled-background-color: $color-background !default;
$form-control-disabled-color: $text-color !default;
$form-control-border-focus: 2px solid theme-color('success', 'base') !default;
$form-control-border-focus: var(--general-border-width) solid var(--form-control-border-focus) !default;
$form-control-placeholder-font-family: $font-family-medium !default;
$form-control-error-colour: theme-color('danger', 'dark') !default;
$form-default-color: theme-color('secondary', 'dark') !default;
$form-primary-color: theme-color('primary', 'base') !default;
$form-success-color: theme-color('success', 'base') !default;

$error-border: $general-border-width solid theme-color('danger', 'dark') !default;
$error-border-left: 2px solid theme-color('danger', 'dark') !default;
$error-border-left: var(--general-border-width) solid theme-color('danger', 'dark') !default;
$help-block-color: $text-color !default;
$help-block-font-style: normal !default;
$help-block-padding: 0 0 0 $form-control-padding-left !default;
Expand Down
2 changes: 1 addition & 1 deletion lib/tyk-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tyk-technologies/tyk-ui",
"version": "4.3.0-alpha3",
"version": "4.3.0-alpha4",
"description": "Tyk UI - ui reusable components",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ body {

.well {
background: transparent;
border: var(--general-border-width) solid var(--color-default-light);
border: var(--general-border-width) solid var(--color-secondary-dark);
border-radius: var(--general-border-radius);
box-shadow: none;

Expand Down
6 changes: 3 additions & 3 deletions src/common/sass/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,18 @@ $form-control-addon-padding-left: 10px !default;
$form-control-addon-padding-right: 10px !default;
$form-control-border: $general-border-width solid theme-color('secondary', 'dark') !default;
$form-control-disabled-border: $general-border-width solid theme-color('secondary', 'base-dark') !default;
$form-control-placeholder-color: --color-secondary--dark !default;
$form-control-placeholder-color: var(--color-secondary--dark) !default;
$form-control-disabled-background-color: $color-background !default;
$form-control-disabled-color: $text-color !default;
$form-control-border-focus: 2px solid theme-color('success', 'base') !default;
$form-control-border-focus: var(--general-border-width) solid var(--form-control-border-focus) !default;
$form-control-placeholder-font-family: $font-family-medium !default;
$form-control-error-colour: theme-color('danger', 'dark') !default;
$form-default-color: theme-color('secondary', 'dark') !default;
$form-primary-color: theme-color('primary', 'base') !default;
$form-success-color: theme-color('success', 'base') !default;

$error-border: $general-border-width solid theme-color('danger', 'dark') !default;
$error-border-left: 2px solid theme-color('danger', 'dark') !default;
$error-border-left: var(--general-border-width) solid theme-color('danger', 'dark') !default;
$help-block-color: $text-color !default;
$help-block-font-style: normal !default;
$help-block-padding: 0 0 0 $form-control-padding-left !default;
Expand Down
7 changes: 7 additions & 0 deletions src/components/ButtonGroup/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ import Dropdown from '../../form/components/Dropdown';
/>
</Dropdown>
</ButtonGroup>
<ButtonGroup
label="Button Group"
>
<Button theme="secondary">button 1</Button>
<Button theme="secondary">button 2</Button>
<Button theme="secondary">button 3</Button>
</ButtonGroup>
<ButtonGroup
label="Button Group"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Panel/Panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
--padding-panel-body: 25px;
--padding-x-right-panel-collapsable: 48px;
--padding-x-left-panel-collapsable: var(--padding-x-right-panel-collapsable);
--panel-border-radius: 0;
--panel-border-radius: 8px;
--panel-default-border-bottom-color: var(--color-secondary-dark);
--panel-header-font-size: var(--base-font-size);
--panel-header-font-family: var(--font-family-bold);
Expand Down
1 change: 1 addition & 0 deletions src/components/Table/Table.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
text-transform: capitalize;
padding: var(--table-th-padding);
vertical-align: middle;
white-space: nowrap;

&.fit {
white-space: nowrap;
Expand Down
15 changes: 10 additions & 5 deletions src/form/components/EditableList/EditableList.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@
}

.tyk-editable-list__header {
padding-block: var(--spacing-base);
font-size: 11px;
text-transform: uppercase;
background-color: white;
border-start-start-radius: var(--general-border-radius);
background-color: var(--color-secondary-light);
border-block-end: 1px solid var(--color-secondary-dark);
border-start-end-radius: var(--general-border-radius);
border-start-start-radius: var(--general-border-radius);
color: var(--text-color);
font-size: var(--sm-font-size);
line-height: var(--sm-line-height);
font-family: var(--font-family-bold);
text-transform: capitalize;

padding-block: var(--spacing-base);
border: var(--general-border-width) solid var(--color-secondary-dark);
border-block-end: 1px solid var(--color-secondary-dark) !important;
color: var(--text-color) !important;
Expand Down
2 changes: 1 addition & 1 deletion src/form/components/EditableList/js/EditableListForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class EditableListForm extends Component {
disabled={this.hasMainFormErrors(errors)}
className="tyk-editable-list__submit-btn"
onClick={this.submitForm}
theme="default"
theme="primary"
type="button"
size={displayType === 'inline' ? 'sm' : 'md'}
>
Expand Down
1 change: 0 additions & 1 deletion src/form/components/Toggle/Toggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
font-size: var(--toggle-label-font-size);
padding: var(--toggle-padding);
inline-size: 100%;
color: var(--toggle-label-color);
}

.tyk-toggle.inline-label .tyk-toggle__label {
Expand Down

0 comments on commit 5ac63e3

Please sign in to comment.