Skip to content

Commit f501758

Browse files
committed
front: fix css conflict with ui-core Select component.
The Select component from ui-core defines a custom-select CSS class, which conflicts with Bootstrap's class of the same name. For now, we override the Bootstrap class with the ui-core version, pending a rename in ui-core.
1 parent 832da46 commit f501758

File tree

2 files changed

+59
-19
lines changed

2 files changed

+59
-19
lines changed

front/src/styles/scss/_uiCoreIntegration.scss

+59
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,62 @@ img {
6868
}
6969
}
7070
}
71+
72+
73+
// __________________ Select __________________
74+
.field-and-status-icon {
75+
.custom-select {
76+
border-radius: .25rem;
77+
border: .063rem solid rgba(148, 145, 142, 1);
78+
box-shadow:
79+
0 .063rem .063rem rgba(0, 0, 0, 0.2),
80+
0 .125 .25rem rgba(0, 0, 0, 0.1);
81+
height: 2.5rem;
82+
padding: .438rem 2rem .563rem .813rem;
83+
letter-spacing: 0;
84+
text-align: left;
85+
line-height: 1.5rem;
86+
width: 100%;
87+
-webkit-appearance: none;
88+
-moz-appearance: none;
89+
appearance: none;
90+
border-color: #94918E;
91+
background-color: #00000003;
92+
color: #312E2B;
93+
94+
option {
95+
color: #312E2B;
96+
}
97+
98+
option:first-child {
99+
color: #797671;
100+
}
101+
102+
&.placeholder-selected {
103+
color: #797671;
104+
}
105+
106+
&:focus {
107+
outline: none;
108+
border: 2px solid rgba(37, 106, 250, 1);
109+
background-color: #00000003;
110+
border-color: #256AFA;
111+
}
112+
113+
&.read-only {
114+
border: 1px solid rgba(182, 178, 175, 1);
115+
box-shadow:
116+
0px 0px 0px rgba(0, 0, 0, 0.2),
117+
0px 1px 0px rgba(0, 0, 0, 0.1);
118+
color: #797671;
119+
}
120+
121+
&:disabled {
122+
border: 1px solid rgba(211, 209, 207, 1);
123+
box-shadow:
124+
0px 0px 0px rgba(0, 0, 0, 0.2),
125+
0px 1px 0px rgba(0, 0, 0, 0.1);
126+
color: #B6B2AF;
127+
}
128+
}
129+
}

front/src/styles/scss/applications/stdcmV2/_card.scss

-19
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,6 @@
6060
margin-bottom: 0;
6161
}
6262

63-
.suggestions.stdcm-v2-ch-selector {
64-
label {
65-
margin: 0 0 0.15rem;
66-
}
67-
select {
68-
min-height: 2.55rem;
69-
padding: 0 1rem;
70-
appearance: auto;
71-
background-image: none;
72-
border-radius: 4px;
73-
border: 0.125rem solid rgba(255, 255, 255, 0.75);
74-
border: 0.0625rem solid rgba(148, 145, 142, 1);
75-
box-shadow:
76-
0px 0.0625rem 0.0625rem rgba(0, 0, 0, 0.2),
77-
0px 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
78-
background-color: rgba(0, 0, 0, 0.01);
79-
}
80-
}
81-
8263
.feed-back {
8364
padding-left: 0rem;
8465
padding-right: 0.3rem;

0 commit comments

Comments
 (0)