Skip to content

Commit

Permalink
feat(js): rename classnames to Detached
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Feb 10, 2021
1 parent 82747d5 commit dadec26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions packages/autocomplete-js/src/getDefaultOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import {
import { getHTMLElement, mergeClassNames } from './utils';

const defaultClassNames: AutocompleteClassNames = {
detachedCancelButton: 'aa-TouchCancelButton',
detachedFormContainer: 'aa-TouchFormContainer',
detachedOverlay: 'aa-TouchOverlay',
detachedSearchButton: 'aa-TouchSearchButton',
detachedSearchButtonIcon: 'aa-TouchSearchButtonIcon',
detachedSearchButtonPlaceholder: 'aa-TouchSearchButtonPlaceholder',
detachedCancelButton: 'aa-DetachedCancelButton',
detachedFormContainer: 'aa-DetachedFormContainer',
detachedOverlay: 'aa-DetachedOverlay',
detachedSearchButton: 'aa-DetachedSearchButton',
detachedSearchButtonIcon: 'aa-DetachedSearchButtonIcon',
detachedSearchButtonPlaceholder: 'aa-DetachedSearchButtonPlaceholder',
form: 'aa-Form',
input: 'aa-Input',
inputWrapper: 'aa-InputWrapper',
Expand Down
14 changes: 7 additions & 7 deletions packages/autocomplete-theme-classic/src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ body {
// Autocomplete
// ----------------
.aa-Autocomplete,
.aa-TouchFormContainer {
.aa-DetachedFormContainer {
font-size: var(--aa-font-size);
line-height: 1em;
text-align: left;
Expand Down Expand Up @@ -451,9 +451,9 @@ body {
}

//----------------
// Touch
// Detached
//----------------
.aa-TouchSearchButton {
.aa-DetachedSearchButton {
align-items: center;
background-color: var(--aa-background-color);
border: 1px solid var(--aa-muted-color);
Expand All @@ -466,7 +466,7 @@ body {
padding: 0 var(--aa-spacing-half);
position: relative;
text-align: left;
.aa-TouchSearchButtonIcon {
.aa-DetachedSearchButtonIcon {
align-items: center;
color: var(--aa-icon-color);
cursor: initial;
Expand All @@ -476,7 +476,7 @@ body {
}
}

.aa-TouchOverlay {
.aa-DetachedOverlay {
background: var(--aa-background-color);
bottom: 0;
left: 0;
Expand All @@ -485,7 +485,7 @@ body {
position: fixed;
right: 0;
top: 0;
.aa-TouchFormContainer {
.aa-DetachedFormContainer {
border-bottom: solid 1px var(--aa-selected-color);
display: flex;
justify-content: space-between;
Expand All @@ -494,7 +494,7 @@ body {
.aa-Form {
padding: 0 var(--aa-spacing-half) 0 0;
}
.aa-TouchCancelButton {
.aa-DetachedCancelButton {
background: none;
border: 0;
color: inherit;
Expand Down

0 comments on commit dadec26

Please sign in to comment.