Skip to content

Commit

Permalink
HPC-9104: Fix style issues after common design theme update
Browse files Browse the repository at this point in the history
  • Loading branch information
berliner committed Oct 17, 2023
1 parent 73678cb commit 342b5d4
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion html/modules/custom/ghi_search/js/ghi_search.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
});

if ($(context).hasClass('path-search') && !$(context).hasClass('search-form-open')) {
$(toggle).attr('aria-expanded', 'true');
$(toggle).trigger('click');
$('#' + search_form_id).attr('data-cd-hidden', 'false');
$('body').addClass('search-form-open');
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- -webkit-print-color-adjust: exact has been added in relation to this issue: https://github.com/GoogleChrome/puppeteer/issues/2182 -->
<style>* {box-sizing: border-box; -webkit-print-color-adjust: exact; font-family: "Roboto", helvetica, arial, sans-serif;}</style>
<style>* {box-sizing: border-box; -webkit-print-color-adjust: exact;} body {font-family: "Roboto", helvetica, arial, sans-serif;}</style>
<div style="width: 100%; color: #4d4c4d; padding: 0px 20px">
<div style="width: 100%;">
<div style="width: 80%; float: left;">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- -webkit-print-color-adjust: exact has been added in relation to this issue: https://github.com/GoogleChrome/puppeteer/issues/2182 -->
<style>* {box-sizing: border-box; -webkit-print-color-adjust: exact; font-family: "Roboto", helvetica, arial, sans-serif;}</style>
<style>* {box-sizing: border-box; -webkit-print-color-adjust: exact;} body {font-family: "Roboto", helvetica, arial, sans-serif;}</style>
<div class="snap-png-header content-width">
<div class="header">
<div class="caption-wrapper">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function common_design_subtheme_form_alter(&$form, FormStateInterface $form_stat
$form['#attributes']['data-cd-icon'][] = '';
$form['#attributes']['data-cd-component'][] = 'cd-search';
$form['#attributes']['data-cd-logo'][] = 'search';
$form['#attributes']['role'][] = 'search';
// Focus the input when clicking on the toggler button.
$form['#attributes']['data-cd-focus-target'] = 'cd-search';
$form['keywords']['#attributes']['placeholder'] = t('What are you looking for?');
Expand Down
2 changes: 1 addition & 1 deletion html/themes/custom/common_design_subtheme/css/styles.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// width: 186px;
width: 100%;
height: auto;
margin: 0 0 0 -1.5rem;
margin: 0 0 0 -1rem;
padding-left: 0.5rem;
text-decoration: none;
color: var(--ghi-default-text-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ main#main-content {

button.cd-search__btn {
height: $cd-site-header-height;
padding: 0;

svg {
fill: var(--ghi-default-text-color);
}

&[aria-expanded="true"] {
position: relative;
Expand All @@ -60,7 +65,7 @@ main#main-content {
}

svg {
fill: var(--ghi-default-text-color);
fill: var(--cd-primary-color);
}

&:hover,
Expand Down Expand Up @@ -125,7 +130,7 @@ main#main-content {
}

// Visually hide the search input's label.
label[for="edit-keys"] {
.form-item-keywords label {
@include visually-hidden;
}
}
Expand Down

0 comments on commit 342b5d4

Please sign in to comment.