From ffae3e7a582a3c5bb408ffd0b3f0c76f7680dd5a Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Wed, 10 Oct 2018 13:30:09 +0200 Subject: [PATCH] Rename css class "gf-form-select2" to "gf-form-select-box" #13425 --- .../PermissionList/AddPermission.tsx | 2 +- .../DisabledPermissionListItem.tsx | 2 +- .../PermissionList/PermissionListItem.tsx | 2 +- .../components/Picker/DescriptionPicker.tsx | 2 +- .../components/Picker/IndicatorsContainer.tsx | 4 ++- .../app/core/components/Picker/TeamPicker.tsx | 2 +- .../app/core/components/Picker/UserPicker.tsx | 2 +- .../__snapshots__/TeamPicker.test.tsx.snap | 12 +++---- .../__snapshots__/UserPicker.test.tsx.snap | 12 +++---- .../core/components/TagFilter/TagFilter.tsx | 2 +- public/app/features/explore/Explore.tsx | 2 +- public/sass/components/_form_select_box.scss | 36 +++++++++---------- 12 files changed, 41 insertions(+), 39 deletions(-) diff --git a/public/app/core/components/PermissionList/AddPermission.tsx b/public/app/core/components/PermissionList/AddPermission.tsx index daee18ea649..a60a7dd4af6 100644 --- a/public/app/core/components/PermissionList/AddPermission.tsx +++ b/public/app/core/components/PermissionList/AddPermission.tsx @@ -121,7 +121,7 @@ class AddPermissions extends Component { optionsWithDesc={dashboardPermissionLevels} onSelected={this.onPermissionChanged} disabled={false} - className={'gf-form-select2__control--menu-right'} + className={'gf-form-select-box__control--menu-right'} /> diff --git a/public/app/core/components/PermissionList/DisabledPermissionListItem.tsx b/public/app/core/components/PermissionList/DisabledPermissionListItem.tsx index 4b9a7830775..77671396505 100644 --- a/public/app/core/components/PermissionList/DisabledPermissionListItem.tsx +++ b/public/app/core/components/PermissionList/DisabledPermissionListItem.tsx @@ -27,7 +27,7 @@ export default class DisabledPermissionListItem extends Component { optionsWithDesc={dashboardPermissionLevels} onSelected={() => {}} disabled={true} - className={'gf-form-select2__control--menu-right'} + className={'gf-form-select-box__control--menu-right'} /> diff --git a/public/app/core/components/PermissionList/PermissionListItem.tsx b/public/app/core/components/PermissionList/PermissionListItem.tsx index c76f3ac1848..47ab62416ae 100644 --- a/public/app/core/components/PermissionList/PermissionListItem.tsx +++ b/public/app/core/components/PermissionList/PermissionListItem.tsx @@ -78,7 +78,7 @@ export default class PermissionsListItem extends PureComponent { optionsWithDesc={dashboardPermissionLevels} onSelected={this.onPermissionChanged} disabled={item.inherited} - className={'gf-form-select2__control--menu-right'} + className={'gf-form-select-box__control--menu-right'} /> diff --git a/public/app/core/components/Picker/DescriptionPicker.tsx b/public/app/core/components/Picker/DescriptionPicker.tsx index cd9b4c2acbf..2c3611cca81 100644 --- a/public/app/core/components/Picker/DescriptionPicker.tsx +++ b/public/app/core/components/Picker/DescriptionPicker.tsx @@ -29,7 +29,7 @@ class DescriptionPicker extends Component {
div { @@ -89,14 +89,14 @@ $select-input-bg-disabled: $input-bg-disabled; } } -.gf-form-select2__indicators { +.gf-form-select-box__indicators { display: table-cell; vertical-align: middle; padding-right: 5px; width: 25px; } -.gf-form-select2__select-arrow { +.gf-form-select-box__select-arrow { border-color: $input-color-select-arrow transparent transparent; border-style: solid; border-width: 5px 5px 2.5px; @@ -105,7 +105,7 @@ $select-input-bg-disabled: $input-bg-disabled; width: 0; position: relative; - &.gf-form-select2__select-arrow--reversed { + &.gf-form-select-box__select-arrow--reversed { border-color: transparent transparent $input-color-select-arrow; top: -2px; border-width: 0 5px 5px; @@ -118,7 +118,7 @@ $select-input-bg-disabled: $input-bg-disabled; } .gf-form--has-input-icon { - .gf-form-select2__value-container { + .gf-form-select-box__value-container { padding-left: 30px; } }