Skip to content

Commit

Permalink
fix: formatting errors introduced by Prettier (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpleroux committed Nov 18, 2024
1 parent e6a3cac commit fe20cb2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 17 deletions.
32 changes: 25 additions & 7 deletions es-design-system/pages/molecules/es-search-bar.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<template>
<div>
<h1 class="mb-500">Search bar</h1>
<h2>Basic example</h2>
<h1 class="mb-500">
Search bar
</h1>
<h2>
Basic example
</h2>
<es-search-bar
id="searchBar1"
class="my-500" />
<h2>Example with open/close functionality</h2>
<h2>
Example with open/close functionality
</h2>
<es-search-bar
v-if="showSearchBar"
id="searchBar2"
Expand Down Expand Up @@ -36,14 +42,18 @@
</es-button>

<div class="my-500">
<h2>EsSearchBar slots</h2>
<h2>
EsSearchBar slots
</h2>
<ds-prop-table
:rows="slotTableRows"
:widths="slotTableWidths" />
</div>

<div class="my-500">
<h2>EsSearchBar props</h2>
<h2>
EsSearchBar props
</h2>
<ds-prop-table
:rows="propTableRows"
:widths="propTableWidths" />
Expand All @@ -66,8 +76,16 @@ export default {
docCode: '',
showSearchBar: false,
propTableRows: [
['buttonText', 'Search', 'Text to display on the submit button.'],
['placeholder', 'Try "best solar panels"', 'Placeholder text to display in the search input.'],
[
'buttonText',
'Search',
'Text to display on the submit button.',
],
[
'placeholder',
'Try "best solar panels"',
'Placeholder text to display in the search input.',
],
],
propTableWidths: {
md: ['4', '2', '6'],
Expand Down
5 changes: 2 additions & 3 deletions es-design-system/pages/organisms/es-nav-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
EsNavBar
</h1>
<p>
The nav bar is a specialized component intended for use outside the normal content
container. See above.
The nav bar is a specialized component intended for use outside the normal content container. See above.
</p>

<p
Expand Down Expand Up @@ -57,7 +56,7 @@ export default {
},
async created() {
if (this.$prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const docSource = await import('!raw-loader!./es-nav-bar.vue');
const compSource = await import('!raw-loader!@energysage/es-vue-base/src/lib-components/EsNavBar.vue');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
Expand Down
13 changes: 7 additions & 6 deletions es-vue-base/src/lib-components/EsNavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
id="nav-main"
class="nav-es-container">
<div class="content-overlay" />
<nav class="nav-es-global navbar navbar-expand navbar-light py-0 font-size-base">
<nav
class="nav-es-global navbar navbar-expand navbar-light py-0 font-size-base">
<!-- mobile hamburger menu button -->
<div class="d-flex d-lg-none col-3 px-0">
<!-- eslint-disable-next-line vuejs-accessibility/label-has-for -->
Expand Down Expand Up @@ -59,7 +60,7 @@
id="data--main-menu"
class="menu-checkbox main-menu-checkbox"
aria-labelledby="data--main-menu"
type="checkbox" />
type="checkbox">
<!-- first-level menu on mobile, the whole nav on desktop-->
<div
id="navbarNavDropdown"
Expand Down Expand Up @@ -123,8 +124,7 @@
'd-lg-block': showSearch,
}">
<es-button
variant="
link"
variant="link"
aria-label="Open search bar"
class="nav-button nav-link search-toggle-desktop d-none d-lg-flex flex-nowrap py-100">
<icon-search
Expand Down Expand Up @@ -158,7 +158,8 @@
</div>
</b-container>
<!-- mobile+desktop product menus -->
<b-container class="flex-lg-nowrap justify-content-lg-end product-menu">
<b-container
class="flex-lg-nowrap justify-content-lg-end product-menu">
<div class="row">
<es-nav-bar-product-menu
v-for="product in globalContent.products"
Expand Down Expand Up @@ -187,7 +188,7 @@
id="data--account-menu"
class="menu-checkbox account-menu-checkbox"
aria-labelledby="data--account-menu"
type="checkbox" />
type="checkbox">
<!-- mobile account menu -->
<div class="menu top-level-menu align-items-start d-flex d-lg-none flex-grow-1">
<!-- menu header -->
Expand Down
4 changes: 3 additions & 1 deletion es-vue-base/src/lib-components/EsSearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
:placeholder="placeholder"
:value="searchText"
@keydown.enter="checkSearchText">
<template #label> Search bar </template>
<template #label>
Search bar
</template>
<template #prefixIcon>
<icon-search />
</template>
Expand Down

0 comments on commit fe20cb2

Please sign in to comment.