Skip to content

Commit

Permalink
Makes searchbox more like allsearch and adds example to jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ishasinha1 committed Nov 22, 2024
1 parent d09f79f commit 58b25c8
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions src/components/LuxSearchBox.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<component :is="type" class="lux-search-box default-search">
<component :is="type" class="lux-search-box">
<!-- @slot The input and its button. -->
<slot>
<lux-input-text
Expand All @@ -8,7 +8,8 @@
label="Search"
:hide-label="true"
placeholder="Search for library materials and website content"
size="medium"
size="large"
class="default-input"
></lux-input-text>
<lux-input-button
type="button"
Expand Down Expand Up @@ -74,22 +75,27 @@ export default {
:deep(.lux-input) {
flex: 1;
margin-bottom: 0;
font-size: small !important;
height: 3rem;
// input {
// border-top-right-radius: 0;
// border-bottom-right-radius: 0;
// }
input {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
:deep(.default-button) {
background-color: $color-princeton-orange-on-white;
border-radius: 0% !important;
border-radius: 0px !important;
padding: 12px 15px;
}
:deep(.lux-button) {
margin: 0;
// border-top-left-radius: 0;
// border-bottom-left-radius: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
&.lux-icon {
background: var(--color-white);
Expand All @@ -107,5 +113,10 @@ export default {
<lux-input-button type="button" variation="icon" size="medium" icon="search"></lux-input-button>
</lux-search-box>
</div>

<div>
<lux-search-box>
</lux-search-box>
</div>
```
</docs>

0 comments on commit 58b25c8

Please sign in to comment.