Skip to content

Commit

Permalink
Merge pull request #1 from cjcenizal/watcher/actions-dropdown-tweaks
Browse files Browse the repository at this point in the history
[Watcher] Add SCSS file and tweak actions dropdown position.
  • Loading branch information
alisonelizabeth authored Apr 25, 2019
2 parents e858f66 + 4ad38cb commit 721b20a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/watcher/plugin_definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const pluginDefinition = {
publicDir: resolve(__dirname, 'public'),
require: ['kibana', 'elasticsearch', 'xpack_main'],
uiExports: {
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
managementSections: ['plugins/watcher'],
home: ['plugins/watcher/register_feature'],
},
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugins/watcher/public/_hacks.scss

This file was deleted.

16 changes: 16 additions & 0 deletions x-pack/plugins/watcher/public/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Import the EUI global scope so we can use EUI constants
@import 'src/legacy/ui/public/styles/_styling_constants';

// Watcher plugin styles

// Prefix all styles with "watcher" to avoid conflicts.
// Examples
// watcherChart
// watcherChart__legend
// watcherChart__legend--small
// watcherChart__legend-isLoading

.watcherThresholdWatchActionDropdownContainer {
justify-content: flex-end;
flex-direction: row;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const WatchActionsPanel = () => {
const { watch } = useContext(WatchContext);
return (
<Fragment>
<EuiFlexGroup justifyContent="spaceBetween">
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
<EuiFlexItem>
<EuiTitle size="s">
<h3>
Expand All @@ -28,7 +28,7 @@ export const WatchActionsPanel = () => {
</h3>
</EuiTitle>
</EuiFlexItem>
<EuiFlexItem>
<EuiFlexItem className="watcherThresholdWatchActionDropdownContainer">
<WatchActionsDropdown />
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit 721b20a

Please sign in to comment.