Skip to content

Commit bd5289d

Browse files
tischsoiclserwatka
authored andcommitted
EZP-29816: Make priority column in children list more prominent (#214)
1 parent e75d9c8 commit bd5289d

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

Resources/public/scss/modules/sub-items-list/_table.view.item.scss

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
border-top: calculateRem(1px) solid $ez-ground-primary;
3737
line-height: 0;
3838
padding-top: calculateRem(16px);
39-
margin-top: -0.5px; // Fixes borders alignment on Safari and Edge
39+
margin-top: -0.5px; // Fixes borders alignment on Safari and Edge
4040
}
4141

4242
&--icon {
@@ -69,7 +69,7 @@
6969
height: calculateRem(47px);
7070
width: calculateRem(70px);
7171
padding: 0;
72-
margin-top: -0.5px; // Fixes borders alignment on Safari and Edge
72+
margin-top: -0.5px; // Fixes borders alignment on Safari and Edge
7373
}
7474
}
7575

@@ -79,20 +79,6 @@
7979
&--input {
8080
width: 7ch;
8181
}
82-
83-
&--disabled {
84-
position: relative;
85-
86-
&:before {
87-
position: absolute;
88-
z-index: 2;
89-
top: 0;
90-
left: 0;
91-
right: 0;
92-
bottom: 0;
93-
content: '';
94-
}
95-
}
9682
}
9783

9884
&__priority-wrapper {
@@ -109,15 +95,38 @@
10995
&__priority-value {
11096
max-width: 100%;
11197
height: calculateRem(40px);
112-
border: calculateRem(1px) solid #b1d2e0;
98+
border: calculateRem(1px) solid $ez-color-secondary;
11399
margin: calculateRem(2px) 0;
114100
padding: 0 calculateRem(10px);
115101

116-
&[disabled] {
117-
border: 0 none;
118-
background: transparent;
102+
&[readonly] {
103+
border-color: $ez-ground-base-dark;
104+
background-color: $ez-white;
105+
color: $ez-black;
119106
cursor: pointer;
120107
}
108+
109+
&[readonly]::-webkit-outer-spin-button,
110+
&[readonly]::-webkit-inner-spin-button {
111+
opacity: 0;
112+
}
113+
114+
&[readonly]:hover::-webkit-outer-spin-button,
115+
&[readonly]:hover::-webkit-inner-spin-button {
116+
opacity: 1;
117+
}
118+
119+
&::-webkit-outer-spin-button,
120+
&::-webkit-inner-spin-button {
121+
opacity: 1;
122+
}
123+
124+
&[readonly] {
125+
-webkit-appearance: textfield;
126+
}
127+
&[readonly]:hover {
128+
-webkit-appearance: number-input;
129+
}
121130
}
122131

123132
&__btn {

src/modules/sub-items/components/table-view/table.view.item.component.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,10 @@ export default class TableViewItemComponent extends PureComponent {
121121
}
122122

123123
if (!this.state.priorityInputEnabled) {
124-
inputAttrs.disabled = true;
124+
inputAttrs.readOnly = true;
125125
delete inputAttrs.defaultValue;
126126
inputAttrs.value = this.state.priorityValue;
127127
priorityWrapperAttrs.onClick = this.enablePriorityInput;
128-
priorityWrapperAttrs.className = 'c-table-view-item__inner-wrapper c-table-view-item__inner-wrapper--disabled';
129128
innerWrapperAttrs.hidden = true;
130129
}
131130

0 commit comments

Comments
 (0)