-
Notifications
You must be signed in to change notification settings - Fork 164
feat(ui): added helpbub #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3c53515
added helpbub; restyled main helpbub button
alinashklyar b07e9db
added smaller helpbub at all other pages
alinashklyar 504af8a
centered modal
alinashklyar e75f001
Update _buttons.scss
NimRegev f2cdf80
Update _buttons.scss
NimRegev 09dd5eb
centered helpbub vertically; added green outline
alinashklyar e100f04
small pr improvements
alinashklyar 30635cf
efford to fix issue with button representation
alinashklyar 1172316
cleaned yarn.lock changes; added aria-label for buttons; fixed userna…
alinashklyar 3874bfa
Update yarn.lock
alinashklyar 2d0e0b5
set an anonymous user for helpbub
alinashklyar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,29 @@ | ||
.helpbub-toggler { | ||
display: flex; | ||
flex-wrap: nowrap; | ||
align-items: center; | ||
justify-content: space-between; | ||
|
||
width: 100%; | ||
padding: 4px 12px 4px 8px; | ||
|
||
color: $helpbub-text-color; | ||
cursor: pointer; | ||
background-color: $helpbub-bg; | ||
|
||
border: 1px solid $helpbub-border; | ||
border-radius: 16px; | ||
|
||
.helpbub-toggler--hotkey { | ||
color: $bd-doc-content-bg; | ||
} | ||
|
||
&:focus { | ||
outline: 1px solid $cf-bright-green; | ||
box-shadow: 0 0 0 5px rgba(95, 255, 191, .24); | ||
} | ||
} | ||
|
||
.helpbub-toggler--small { | ||
max-width: 275px; | ||
} |
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -47,3 +47,4 @@ | |
@import "anchor"; | ||
@import "links"; | ||
@import "algolia"; | ||
@import "helpbub"; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 |
---|---|---|
|
@@ -19,7 +19,19 @@ <h2 class="mb-3 bd-text-white text-uppercase"> | |
Instantly build, test, and deploy Docker images.<br> | ||
Realize your true DevOps potential with the premier enterprise Argo software delivery solution. | ||
</p> | ||
<div id="searchbar"></div> | ||
<!-- <div id="searchbar"></div>--> | ||
<button | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. accessibility attributes for the button |
||
onclick="window.CommandBar.toggleHelpHub()" | ||
class="helpbub-toggler mb-3" | ||
aria-label="Search Codefresh Documentation" | ||
type="button" | ||
> | ||
<div class="d-flex align-items-center"> | ||
<img src="{{site.baseurl}}/images/icons/search.png" /> | ||
<span class="ml-2">Search</span> | ||
</div> | ||
<span class="helpbub-toggler--hotkey">⌘ + K</span> | ||
</button> | ||
<!-- <div> | ||
<form class="bd-search bd-search--home d-flex mt-1 mb-3 mt-md-0 order-2 order-md-2 align-items-center"> | ||
<input type="search" class="form-control form-control-dark mr-sm-2 doc-search-input" id="navbar-search-input" placeholder="{{ site.data.translations[site.locale].search_placeholder_text }}" aria-label="{{ site.data.translations[site.locale].search_placeholder_text }}" autocomplete="off"> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add accessibility attributes to this button?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, you mean aria-labels?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but it has text inside of it btw
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure it's accessibe via keyboard and a screen reader