Skip to content

Commit a755f4e

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 a755f4e

File tree

2 files changed

+58
-19
lines changed

2 files changed

+58
-19
lines changed

front/src/styles/scss/_uiCoreIntegration.scss

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

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)