- Notifications
You must be signed in to change notification settings - Fork165
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
3c53515b07e9db504af8ae75f001f2cdf8009dd5ebe100f0430635cf11723163874bfa2d0e0b5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -6,8 +6,8 @@ | ||
| </div> | ||
| <span class="badge cf-badge cf-badge-doc align-middle ml-1">Codefresh Documentation</span> | ||
| </a> | ||
| <!-- {% if page.layout != "home" %}--> | ||
| <!-- <div id="searchbar" class="order-2 order-md-2 align-items-center"></div>--> | ||
| <!-- <form class="bd-search {% if page.layout == "docs" %}bd-search-docs {% endif %}d-flex mt-1 mb-1 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"> | ||
| <i class="fa fa-search"></i> | ||
| @@ -17,7 +17,7 @@ | ||
| </button> | ||
| {% endif %} | ||
| </form> --> | ||
| <!-- {% endif %}--> | ||
| <div class="navbar-nav-scroll order-1 order-md-1 mx-md-auto"> | ||
| <ul class="navbar-nav flex-row mx-md-auto"> | ||
| @@ -93,6 +93,21 @@ | ||
| </ul> | ||
| </div> | ||
| - <!-- </div> | ||
| <a class="btn btn-primary order-2 order-md-2" href="https://codefresh.io/docs/" style="background-color: #212437; border-color: #212437; color: #5FFFBF; font-weight: 500">View Codefresh Docs</a> | ||
| </div> --> | ||
| {% if page.layout != "home" %} | ||
| <button | ||
| onclick="window.CommandBar.toggleHelpHub()" | ||
Contributor 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. Can we also add accessibility attributes to this button? ContributorAuthor 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. sure, you mean aria-labels? ContributorAuthor 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. but it has text inside of it btw Contributor 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. Just to make sure it's accessibe via keyboard and a screen reader | ||
| class="helpbub-toggler helpbub-toggler--small order-2 order-md-2" | ||
| 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> | ||
| {% endif %} | ||
| </header> | ||
Large diffs are not rendered by default.
Uh oh!
There was an error while loading.Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading.Please reload this page.
| 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; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -47,3 +47,4 @@ | ||
| @import "anchor"; | ||
| @import "links"; | ||
| @import "algolia"; | ||
| @import "helpbub"; | ||
| 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>--> | ||
| <button | ||
Contributor 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"> | ||