Skip to content

Commit

Permalink
feat(tokens): add --cc-color-border-neutral-strong and use it when …
Browse files Browse the repository at this point in the history
…relevant
  • Loading branch information
florian-sanders-cc committed May 15, 2023
1 parent 816d0db commit 03aed66
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/cc-input-number/cc-input-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class CcInputNumber extends LitElement {
bottom: 0;
left: 0;
overflow: hidden;
border: 1px solid #aaa;
border: 1px solid var(--cc-color-border-neutral-strong, #aaa);
background: var(--cc-color-bg-default, #fff);
border-radius: var(--cc-border-radius-default, 0.25em);
box-shadow: 0 0 0 0 rgb(255 255 255 / 0%);
Expand Down
2 changes: 1 addition & 1 deletion src/components/cc-input-text/cc-input-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ export class CcInputText extends LitElement {
bottom: 0;
left: 0;
overflow: hidden;
border: 1px solid #aaa;
border: 1px solid var(--cc-color-border-neutral-strong, #aaa);
background: var(--cc-color-bg-default, #fff);
border-radius: var(--cc-border-radius-default, 0.25em);
box-shadow: 0 0 0 0 rgb(255 255 255 / 0%);
Expand Down
2 changes: 1 addition & 1 deletion src/components/cc-select/cc-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export class CcSelect extends LitElement {
height: 2em;
box-sizing: border-box;
padding: 0 3em 0 0.5em;
border: 1px solid #aaa;
border: 1px solid var(--cc-color-border-neutral-strong, #aaa);
background-color: var(--cc-color-bg-default, #fff);
border-radius: var(--cc-border-radius-default, 0.25em);
grid-area: input;
Expand Down
2 changes: 1 addition & 1 deletion src/components/cc-tile-consumption/cc-tile-consumption.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class CcTileConsumption extends LitElement {
.separator {
flex: 1 1 0;
border-top: 1px dotted #8c8c8c;
border-top: 1px dotted var(--cc-color-border-neutral-strong, #8c8c8c);
margin: 0 10px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/cc-tile-scalability/cc-tile-scalability.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class CcTileScalability extends LitElement {
.separator {
width: 1.5em;
flex: 1 1 0;
border-top: 1px dashed #8c8c8c;
border-top: 1px dashed var(--cc-color-border-neutral-strong, #8c8c8c);
}
[title] {
Expand Down
4 changes: 4 additions & 0 deletions src/styles/default-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@
/* Usage: for danger border */
--cc-color-border-danger-weak: var(--color-red-20);

/* Usage: for contrasted borders.
* For instance: click targets like input fields */
--cc-color-border-neutral-strong: var(--color-grey-50);

/* Usage: for primary border */
--cc-color-border-primary-weak: var(--color-blue-20);

Expand Down

0 comments on commit 03aed66

Please sign in to comment.