Skip to content

Commit

Permalink
Merge pull request #25 from miksrv/develop
Browse files Browse the repository at this point in the history
Fixed button hover text color, added Added CSS var '--dropdown-badge-background-color'
  • Loading branch information
miksrv authored Nov 8, 2024
2 parents 2ff33df + cba6da9 commit 12b084a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# simple-react-ui-kit

## 1.3.2

### Patch Changes

- Added CSS var '--dropdown-badge-background-color' for badges in the MultiSelect
- Fixed Button positive and negative hover text color
- Updated Readme

## 1.3.1

### Patch Changes
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ To customize the theme, simply override the default values in your stylesheet:
```css
:root {
/* Primary Colors */
--color-contrast: #FFF;
--color-contrast: #ffffff;

--color-green: #4bb34b;
--color-green-hover: #48AC4A;
Expand Down Expand Up @@ -1024,7 +1024,7 @@ To customize the theme, simply override the default values in your stylesheet:
--body-background: #ebedf0;
--border-radius: 4px;
--container-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
--container-background-color: #fff;
--container-background-color: #ffffff;
--container-error-background-color: #FFE9E9;
--container-error-color: var(--color-red);
--container-success-background-color: #E8F9E8;
Expand All @@ -1033,6 +1033,7 @@ To customize the theme, simply override the default values in your stylesheet:
/* Input Fields and Dropdowns */
--dropdown-background-color: #ffffff;
--dropdown-background-color-hover: #f2f3f5;
--dropdown-badge-background-color: #ffffff;
--input-background-color: #f2f3f5;
--input-label-color: #6d7885;
--input-border: 0.5px solid var(--input-border-color);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-react-ui-kit",
"version": "1.3.1",
"version": "1.3.2",
"description": "A lightweight and flexible UI framework for building responsive React applications with customizable components.",
"repository": "https://github.com/miksrv/simple-react-ui-kit.git",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/button/styles.module.sass
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

&.negative
background-color: var(--color-red)
color: var(--color-contrast)
color: var(--color-contrast) !important

svg
fill: var(--color-red)
Expand All @@ -94,7 +94,7 @@

&.positive
background-color: var(--color-green)
color: var(--color-contrast)
color: var(--color-contrast) !important

svg
fill: var(--color-green)
Expand Down
2 changes: 1 addition & 1 deletion src/components/multiselect/styles.module.sass
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $iconSize: 18px
font-size: var(--font-size)

.badge
background-color: var(--color-contrast)
background-color: var(--dropdown-badge-background-color)

.buttonContainer
margin-left: 5px
Expand Down
5 changes: 3 additions & 2 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global.css */
:root {
/* Primary Colors */
--color-contrast: #FFF;
--color-contrast: #ffffff;

--color-green: #4bb34b;
--color-green-hover: #48AC4A;
Expand Down Expand Up @@ -35,7 +35,7 @@
--body-background: #ebedf0;
--border-radius: 4px;
--container-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
--container-background-color: #fff;
--container-background-color: #ffffff;
--container-error-background-color: #FFE9E9;
--container-error-color: var(--color-red);
--container-success-background-color: #E8F9E8;
Expand All @@ -44,6 +44,7 @@
/* Input Fields and Dropdowns */
--dropdown-background-color: #ffffff;
--dropdown-background-color-hover: #f2f3f5;
--dropdown-badge-background-color: #ffffff;
--input-background-color: #f2f3f5;
--input-label-color: #6d7885;
--input-border: 0.5px solid var(--input-border-color);
Expand Down

0 comments on commit 12b084a

Please sign in to comment.