Skip to content

Commit

Permalink
Add styles to edit-text[disabled]
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetDealer committed Jan 29, 2024
1 parent 9dec635 commit 6e95158
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@elsci-io/ui-essential",
"version": "1.0.38",
"version": "1.0.39",
"description": "Material Design components created for products built by elsci.io",
"main": "src/index.js",
"type": "module",
Expand Down
8 changes: 8 additions & 0 deletions src/EditText/EditText.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@
edit-text .edit-text__text {
text-decoration: underline;
cursor: pointer;
}

edit-text[disabled] .edit-text__text {
text-decoration: none;
cursor: default;
font-weight: normal;
opacity: 0.5;
pointer-events: none;
}
7 changes: 7 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ <h1>Elsci Essential Components</h1>
></edit-text>
</div>
</li>
<li class="input-element__item">
<div>
<edit-text disabled name="disabled"
value="20m/z (disabled)"
></edit-text>
</div>
</li>
</ul>
<a href="#edit-text">Read more</a></div>

Expand Down

0 comments on commit 6e95158

Please sign in to comment.