Skip to content

Commit

Permalink
Update button hover and active states, remove line-height
Browse files Browse the repository at this point in the history
Refactor CSS to ensure hover and active states aren't applied to disabled buttons. Remove unnecessary line-height and font-size properties. This improves styling consistency and readability.
  • Loading branch information
bbalganjjm committed Nov 12, 2024
1 parent 33727c1 commit 997d952
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/resources/static/js/natural_js/css/natural.ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@
}

.alert_tooltip__.msg__ ul.msg_line_box__ li {
line-height: 16px;
padding: 1px 7px 1px 22px;
background: var(--njs-icon-error) no-repeat 7px 50%;
background-size: 14px;
Expand Down Expand Up @@ -231,18 +230,18 @@ a.btn_common__, input[type='button'].btn_common__, button.btn_common__ {
line-height: inherit;
}

a.btn_common__:hover, input[type='button'].btn_common__:hover, button.btn_common__:hover {
a.btn_common__:not(.btn_disabled__):hover, input[type='button'].btn_common__:not(.btn_disabled__):hover, button.btn_common__:not(.btn_disabled__):hover {
opacity: 0.9;
}

a.btn_common__:active, input[type='button'].btn_common__:active, button.btn_common__:active {
a.btn_common__:not(.btn_disabled__):active, input[type='button'].btn_common__:not(.btn_disabled__):active, button.btn_common__:not(.btn_disabled__):active {
opacity: 0.8;
}

a.btn_disabled__, input.btn_disabled__, button.btn_disabled__ {
will-change: opacity;

opacity: 0.6;
opacity: 0.6 !important;
transition: opacity var(--njs-motion-duration-slow) ease;
cursor: default;
}
Expand Down Expand Up @@ -1062,7 +1061,6 @@ a.btn_elevated__, input[type='button'].btn_elevated__, button.btn_elevated__ {
width: 35px;
text-align: center;
transform: scaleX(0);
font-size: var(--njs-font-size-m);
}

.datepicker_contents__ .datepicker_day_item__.datepicker_holiday__,
Expand Down

0 comments on commit 997d952

Please sign in to comment.