-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switched from using <a> to <button> and added a component class
- Loading branch information
1 parent
5f344ae
commit b75ebf0
Showing
3 changed files
with
41 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
<div class="user-guide-link" data-test-user-guide-link> | ||
<a | ||
href="https://iliosproject.gitbook.io/ilios-user-guide" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
<button | ||
type="button" | ||
aria-haspopup="false" | ||
aria-labelledby="user-guide-link-icon" | ||
{{on "click" this.openUserGuide}} | ||
> | ||
<FaIcon | ||
@icon="circle-question" | ||
@icon="question" | ||
@title={{t "general.iliosUserGuide"}} | ||
id="user-guide-link-icon" | ||
data-test-user-guide-link-icon | ||
/> | ||
</a> | ||
</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Component from '@glimmer/component'; | ||
import { action } from '@ember/object'; | ||
|
||
export default class UserGuideLinkComponent extends Component { | ||
@action | ||
openUserGuide() { | ||
window.open('https://iliosproject.gitbook.io/ilios-user-guide', '_blank'); | ||
} | ||
} |
41 changes: 24 additions & 17 deletions
41
packages/frontend/app/styles/components/user-guide-link.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters