Skip to content

Commit

Permalink
refactor: inherit border.color from color tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Nov 20, 2024
1 parent 14add60 commit dea713d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/eui-theme-borealis/src/variables/_borders.scss

This file was deleted.

1 change: 0 additions & 1 deletion packages/eui-theme-borealis/src/variables/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
@import 'states';

@import './colors/colors_vis';
@import 'borders';
@import 'form';
@import 'page';
@import 'font_weight';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$euiBorderWidthThin: 1px !default;
$euiBorderWidthThick: 2px !default;

$euiBorderColor: $euiColorLightShade !default;
$euiBorderColor: $euiColorBorderBaseSubdued !default;
$euiBorderRadius: $euiSizeS * .75 !default;
$euiBorderRadiusSmall: $euiSizeS * .5 !default;
$euiBorderThick: $euiBorderWidthThick solid $euiBorderColor !default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import { sizeToPixel } from '../../../../global_styling/functions';
import { computed } from '../../../../services/theme/utils';

export const border: _EuiThemeBorder = {
color: computed(([lightShade]) => lightShade, ['colors.lightShade']),
color: computed(
([borderBaseSubdued]) => borderBaseSubdued,
['colors.borderBaseSubdued']
),
width: {
thin: '1px',
thick: '2px',
Expand Down

0 comments on commit dea713d

Please sign in to comment.