From c0b925ee4ac4428a06b41258d9666a6dd0da2152 Mon Sep 17 00:00:00 2001 From: ldd Date: Wed, 27 May 2020 09:42:13 -0400 Subject: [PATCH] fix(badge): rename is-splited to is-split --- docs/script.js | 4 ++-- scss/elements/badges.scss | 6 +++--- story/badge/badge.template.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/script.js b/docs/script.js index c1cfd28..99de125 100644 --- a/docs/script.js +++ b/docs/script.js @@ -436,12 +436,12 @@ const sampleCollection = [ framework! - + npm 1.1.0 - + test 100% diff --git a/scss/elements/badges.scss b/scss/elements/badges.scss index 1ac1286..04e4c86 100644 --- a/scss/elements/badges.scss +++ b/scss/elements/badges.scss @@ -27,7 +27,7 @@ @mixin badge-style($color, $background, $option: is-default) { $box-shadow-first-two: 0 0.5em $background, 0 -0.5em $background; - @if $option == is-splited { + @if $option == is-split { &:first-child { @include span-style($color, $background, left); @@ -85,9 +85,9 @@ "error" $background-color map-get($error-colors, "normal"); @each $type in $types { - &.is-splited { + &.is-split { & span.is-#{nth($type, 1)} { - @include badge-style(nth($type, 2), nth($type, 3), is-splited); + @include badge-style(nth($type, 2), nth($type, 3), is-split); } } diff --git a/story/badge/badge.template.js b/story/badge/badge.template.js index 8f7a9c3..d38349f 100644 --- a/story/badge/badge.template.js +++ b/story/badge/badge.template.js @@ -12,9 +12,9 @@ export default () => { const iconStyle = select('Badge Display', { default: '', - 'is-splited': 'is-splited', + 'is-split': 'is-split', 'is-icon': 'is-icon', - }, 'is-splited'); + }, 'is-split'); const leftOptions = select('Left Style', { ...sharedComponentOptions,