Skip to content

Commit

Permalink
fix: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed May 16, 2024
1 parent 6caa9d9 commit af002a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../src/inkline.scss';
import './preview.scss';
import { DecoratorHelpers } from '@storybook/addon-themes';
import { RouterLink } from './components';
import { useInkline } from '../lib/composables/useInkline';
import { useInkline } from '../src/composables';

export const withInklineTheme = ({ themes, defaultTheme }) => {
const currentTheme = ref(defaultTheme);
Expand Down
11 changes: 6 additions & 5 deletions src/css/functions/_properties.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use 'sass:list';
@use 'sass:meta';
@use 'sass:string';
@use 'sass:selector';

Expand All @@ -17,7 +18,7 @@

@function create-css-variables-fallback($fallbackValue, $defaultFallbackValue) {
@if $fallbackValue {
@if type-of($fallbackValue) == 'string' {
@if meta.type-of($fallbackValue) == 'string' {
@return ', #{$fallbackValue}';
} @else {
@return ', #{$defaultFallbackValue}';
Expand Down Expand Up @@ -54,7 +55,7 @@
$border-right-fallback: $fallback;
$border-bottom-fallback: $fallback;
$border-left-fallback: $fallback;
@if type-of($fallback) == 'list' {
@if meta.type-of($fallback) == 'list' {
$border-top-fallback: list.nth($fallback, 1);
$border-right-fallback: list.nth($fallback, 2);
$border-bottom-fallback: list.nth($fallback, 3);
Expand Down Expand Up @@ -127,7 +128,7 @@
$color-l-fallback: $fallback;
$color-a-fallback: $fallback;

@if type-of($fallback) == 'list' {
@if meta.type-of($fallback) == 'list' {
$color-h-fallback: list.nth($fallback, 1);
$color-s-fallback: list.nth($fallback, 2);
$color-l-fallback: list.nth($fallback, 3);
Expand Down Expand Up @@ -287,7 +288,7 @@
$border-top-right-radius-fallback: $fallback;
$border-bottom-right-radius-fallback: $fallback;
$border-bottom-left-radius-fallback: $fallback;
@if type-of($fallback) == 'list' {
@if meta.type-of($fallback) == 'list' {
$border-top-left-radius-fallback: list.nth($fallback, 1);
$border-top-right-radius-fallback: list.nth($fallback, 2);
$border-bottom-right-radius-fallback: list.nth($fallback, 3);
Expand Down Expand Up @@ -367,7 +368,7 @@
$box-shadow-blur-radius-fallback: $fallback;
$box-shadow-spread-radius-fallback: $fallback;
$box-shadow-color-fallback: $fallback;
@if type-of($fallback) == 'list' {
@if meta.type-of($fallback) == 'list' {
$box-shadow-offset-x-fallback: list.nth($fallback, 1);
$box-shadow-offset-y-fallback: list.nth($fallback, 2);
$box-shadow-blur-radius-fallback: list.nth($fallback, 3);
Expand Down

0 comments on commit af002a3

Please sign in to comment.