diff --git a/src/search/index.less b/src/search/index.less index 69d80d800..27abf3e1d 100644 --- a/src/search/index.less +++ b/src/search/index.less @@ -5,12 +5,13 @@ align-items: center; box-sizing: border-box; padding: @search-padding; + background-color: @search-background-color; &__content { display: flex; flex: 1; padding-left: @padding-xs; - background-color: @search-background-color; + background-color: @search-content-background-color; border-radius: @border-radius-sm; &--round { diff --git a/src/search/index.tsx b/src/search/index.tsx index 6cc5352e6..06e93c866 100644 --- a/src/search/index.tsx +++ b/src/search/index.tsx @@ -126,6 +126,7 @@ Search.props = { rightIcon: String, actionText: String, showAction: Boolean, + background: String, shape: { type: String, default: 'square', @@ -134,10 +135,6 @@ Search.props = { type: Boolean, default: true, }, - background: { - type: String, - default: '#fff', - }, leftIcon: { type: String, default: 'search', diff --git a/src/search/test/__snapshots__/demo.spec.js.snap b/src/search/test/__snapshots__/demo.spec.js.snap index 1280a0c56..65d67e2ad 100644 --- a/src/search/test/__snapshots__/demo.spec.js.snap +++ b/src/search/test/__snapshots__/demo.spec.js.snap @@ -3,7 +3,7 @@ exports[`renders demo correctly 1`] = `
-