Skip to content

Commit

Permalink
fix(label): gap between label and input
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed May 20, 2021
1 parent 17861c8 commit b1f01be
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/docs/components/docs-btn-search/docs-btn-search.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
display: flex;
align-items: center;
appearance: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
background-color: transparent;
cursor: pointer;
border: 0;
padding: 0;
color: inherit;
width: 100%;
font: var(--ld-typo-body-s);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.docs-btn-search__magnifier {
Expand Down
9 changes: 9 additions & 0 deletions src/docs/components/docs-nav/docs-nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@
font-weight: 900;
display: inline-block;
margin: var(--ld-sp-24) 0 var(--ld-sp-6);

@media (hover: none) {
outline: none;
}

&::marker,
&::-webkit-details-marker {
display: none;
}
}

.docs-switch-dark-light {
Expand Down
2 changes: 1 addition & 1 deletion src/docs/components/docs-search/docs-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class DocsSearch {
this.isActive = true
this.searchInput.value = ''
setTimeout(() => {
this.searchInput.focus()
this.searchInput.querySelector('input').focus()
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
display: flex;
align-items: center;
appearance: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
background-color: transparent;
cursor: pointer;
border: 0;
padding: 0;
color: inherit;
font: var(--ld-typo-body-s);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);

svg {
margin-right: var(--ld-sp-6);
Expand Down
1 change: 1 addition & 0 deletions src/docs/layouts/docs-layout/docs-layout.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
body {
overscroll-behavior-x: none;
-webkit-text-size-adjust: none;
}

.docs-main {
Expand Down
2 changes: 1 addition & 1 deletion src/liquid/components/ld-input/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ The `ld-input` component does not provide any properties or methods for validati
} else {
window.alert('Form is invalid.')
}
})
}, 10)
})
</script>
{% endexample %}
Expand Down
2 changes: 1 addition & 1 deletion src/liquid/components/ld-label/ld-label.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.ld-label {
font: var(--ld-typo-label-s);
display: inline-flex;
display: inline-grid;
flex-direction: column;
gap: var(--ld-sp-6);
max-width: 100%;
Expand Down

0 comments on commit b1f01be

Please sign in to comment.