File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,15 +32,15 @@ export default class extends Component {
3232 }
3333 }
3434
35- setBrandColor(color : string , dropdown : BasicDropdownDefaultBlock ) {
35+ setBrandColor(color : string , dropdown : BasicDropdownDefaultBlock < ' span ' > ) {
3636 brands .forEach ((klass ) => document .body .classList .remove (klass ));
3737 document .body .classList .add (` ${color }-brand ` );
3838 dropdown .actions .close ();
3939 }
4040
4141 // Methods
4242 calculatePosition(
43- trigger : Element ,
43+ trigger : HTMLElement ,
4444 content : HTMLElement ,
4545 destination : HTMLElement ,
4646 options : CalculatePositionOptions ,
@@ -74,13 +74,12 @@ export default class extends Component {
7474 >Github</a >
7575 </div >
7676 <div class =" main-header-logo" >
77- <BasicDropdown @ calculatePosition ={{this .calculatePosition }} as | dd | >
77+ <BasicDropdown @ triggerHtmlTag = " span " @ calculatePosition ={{this .calculatePosition }} as | dd | >
7878 <LinkTo @ route =" public-pages.index" class =" home-link" >
7979 <img src =" /ember_logo.png" alt =" ember" />
8080 <strong >Basic</strong >
8181 {{! template-lint-disable no-pointer-down-event-binding }}
8282 <dd.Trigger
83- @ htmlTag =" span"
8483 {{on " mousedown" this . preventIfNotInIndex}}
8584 {{on " touchend" this . preventIfNotInIndex}}
8685 class =" logo-dropdown-button"
You can’t perform that action at this time.
0 commit comments