diff --git a/ui/src/dashboards/components/DashboardHeaderEdit.js b/ui/src/dashboards/components/DashboardHeaderEdit.js index d3be7073fd..cb412491c7 100644 --- a/ui/src/dashboards/components/DashboardHeaderEdit.js +++ b/ui/src/dashboards/components/DashboardHeaderEdit.js @@ -21,15 +21,15 @@ class DashboardEditHeader extends Component { return (
-
- this.handleChange(e.target.value)} - /> -
+ this.handleChange(e.target.value)} + placeholder="Name this Dashboard" + spellCheck={false} + autoComplete={false} + />
diff --git a/ui/src/kapacitor/components/RuleHeader.js b/ui/src/kapacitor/components/RuleHeader.js index 30932a8089..9a7cf56f39 100644 --- a/ui/src/kapacitor/components/RuleHeader.js +++ b/ui/src/kapacitor/components/RuleHeader.js @@ -110,31 +110,31 @@ export const RuleHeader = React.createClass({ onKeyDown={e => this.handleEditName(e, rule)} onBlur={() => this.handleEditNameBlur(rule)} placeholder="Name your rule" + spellCheck={false} + autoComplete={false} /> - :

- {rule.name} - - -

+ :
+

+ {rule.name} + + +

+
- return ( -
- {name} -
- ) + return name }, }) diff --git a/ui/src/shared/components/ConfirmButtons.js b/ui/src/shared/components/ConfirmButtons.js index 9c237440ab..4441d035c6 100644 --- a/ui/src/shared/components/ConfirmButtons.js +++ b/ui/src/shared/components/ConfirmButtons.js @@ -1,11 +1,22 @@ import React, {PropTypes} from 'react' +import classnames from 'classnames' -const ConfirmButtons = ({onConfirm, item, onCancel}) => ( +const ConfirmButtons = ({onConfirm, item, onCancel, buttonSize}) => (
- -
@@ -17,6 +28,10 @@ ConfirmButtons.propTypes = { onConfirm: func.isRequired, item: oneOfType([shape(), string]), onCancel: func.isRequired, + buttonSize: string, } +ConfirmButtons.defaultProps = { + buttonSize: 'btn-sm', +} export default ConfirmButtons diff --git a/ui/src/style/components/page-header-dropdown.scss b/ui/src/style/components/page-header-dropdown.scss index a60355ef1e..4b02021085 100644 --- a/ui/src/style/components/page-header-dropdown.scss +++ b/ui/src/style/components/page-header-dropdown.scss @@ -2,12 +2,14 @@ .dropdown-toggle { height: 38px; padding-left: 0; + padding-right: (11px + 12px); // caret width + offset + padding-top: 0; + padding-bottom: 0; min-width: 50px; width: auto; border: 0; background-color: transparent; text-transform: none; - padding-right: (11px + 12px); // caret width + offset font-size: $page-header-size; font-weight: $page-header-weight; transition: color 0.25s ease; @@ -39,4 +41,4 @@ @include no-user-select(); } } -} \ No newline at end of file +} diff --git a/ui/src/style/components/page-header-editable.scss b/ui/src/style/components/page-header-editable.scss index c8d4f21882..4a3a641093 100644 --- a/ui/src/style/components/page-header-editable.scss +++ b/ui/src/style/components/page-header-editable.scss @@ -27,8 +27,6 @@ font-weight: $page-header-weight; padding: 0; flex: 1; - position: relative; - top: -1px; &:focus { color: $c-pool;