Skip to content

Commit 49909f1

Browse files
committed
HDS-4154 added toggle for PageHeader showcase outlines
1 parent 225a734 commit 49909f1

File tree

5 files changed

+235
-223
lines changed

5 files changed

+235
-223
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
6+
import Controller from '@ember/controller';
7+
import { action } from '@ember/object';
8+
import { tracked } from '@glimmer/tracking';
9+
import { inject as service } from '@ember/service';
10+
11+
export default class PageHeaderController extends Controller {
12+
@service router;
13+
14+
@tracked showHighlight = false;
15+
16+
// =============================
17+
// GENERIC HANDLERS
18+
// =============================
19+
20+
@action
21+
toggleHighlight() {
22+
this.showHighlight = !this.showHighlight;
23+
}
24+
}

showcase/app/styles/app.scss

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
@import "./showcase-pages/link-inline";
6161
@import "./showcase-pages/menu-primitive";
6262
@import "./showcase-pages/modal";
63+
@import "./showcase-pages/page-header";
6364
@import "./showcase-pages/pagination";
6465
@import "./showcase-pages/popover-primitive";
6566
@import "./showcase-pages/power-select";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
6+
// Page Header
7+
8+
body.components-page-header {
9+
.shw-component-page-header-layout-highlight {
10+
.hds-page-header {
11+
outline: 1px dashed #78909c;
12+
outline-offset: -1px;
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)