Skip to content

Commit

Permalink
fix a few styles being global
Browse files Browse the repository at this point in the history
  • Loading branch information
Gebuz committed Jan 23, 2024
1 parent 6716ebe commit 529a241
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dataforsyningen/gsearch-ui",
"version": "2.0.0",
"version": "2.0.1",
"description": "UI component for GSearch.",
"main": "public/search.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class GSearchInput extends HTMLElement {
g-search-input {
position: relative;
}
input[type=search].hide-icon {
g-search-input > input[type=search].hide-icon {
background-image: none;
}
.gs-input-button {
Expand Down
4 changes: 2 additions & 2 deletions src/components/result-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export class GSearchResultBox extends HTMLElement {
// public properties
data = {}
styles = /* css */`
svg {
g-search-result-box > svg {
width: 1.25rem;
height: 1.25rem;
margin-right: 0.25rem;
}
p {
g-search-result-box > p {
display: inline-block;
}
`
Expand Down

0 comments on commit 529a241

Please sign in to comment.