Skip to content

Commit

Permalink
Merge pull request #31 from dreth/fix-styles-within-document
Browse files Browse the repository at this point in the history
Fix incorrect style application to component
  • Loading branch information
blackary authored Feb 14, 2024
2 parents 3dbe6cf + 21d4077 commit 770283a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="streamlit-keyup",
version="0.2.2",
version="0.2.3",
author="Zachary Blackwood",
author_email="[email protected]",
description="Text input that renders on keyup",
Expand Down
4 changes: 2 additions & 2 deletions src/st_keyup/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<script src="./main.js"></script>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div id="root">
<body id="root">
<div>
<label id="label" for="text_input">This is a label</label>
<div class="input">
<input name="text_input" id="input_box" />
Expand Down
6 changes: 6 additions & 0 deletions src/st_keyup/frontend/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
body {
-webkit-tap-highlight-color: var(--text-color);
background-color: var(--background-color);
color: var(--text-color);
font-family: var(--font);
}
label {
font-family: var(--font);
font-weight: 400;
Expand Down

0 comments on commit 770283a

Please sign in to comment.