Bläddra i källkod

wip: add basic option header

Erik Sundell 7 år sedan
förälder
incheckning
5370f78ee7

+ 12 - 0
public/app/core/components/Picker/GroupHeading.tsx

@@ -0,0 +1,12 @@
+import React from 'react';
+import { components } from 'react-select';
+
+export const GroupHeading = props => {
+  return (
+    <label className="description-picker-option__button btn picker-option-group">
+      <components.GroupHeading {...props} />
+    </label>
+  );
+};
+
+export default GroupHeading;

+ 1 - 0
public/sass/_grafana.scss

@@ -103,6 +103,7 @@
 @import 'components/page_loader';
 @import 'components/thresholds';
 @import 'components/toggle_button_group';
+@import 'components/group-heading';
 @import 'components/value-mappings';
 
 // PAGES

+ 5 - 0
public/sass/components/_group-heading.scss

@@ -0,0 +1,5 @@
+.picker-option-group {
+  cursor: default;
+  font-weight: $lead-font-weight;
+  color: $btn-primary-bg-hl;
+}