Skip to content

Commit 0bdfe5e

Browse files
UN-2718 [FIX] Fix Profile page CSS specificity conflict with FieldComparisonModal (#1754)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4876514 commit 0bdfe5e

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

frontend/src/components/profile/Profile.css

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,21 @@
149149
}
150150

151151
/* Field groups */
152-
.field-group {
152+
.profile-card .field-group {
153153
display: flex;
154154
flex-direction: column;
155155
gap: 8px;
156156
}
157157

158-
.field-label {
158+
.profile-card .field-label {
159159
font-size: 14px;
160160
color: #6a7282;
161161
font-weight: 500;
162162
line-height: 14px;
163163
}
164164

165165
/* Field boxes with subtle shadow like Figma */
166-
.field-box {
166+
.profile-card .field-box {
167167
display: flex;
168168
align-items: center;
169169
justify-content: space-between;
@@ -175,33 +175,42 @@
175175
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
176176
}
177177

178-
.field-value {
178+
.profile-card .field-value {
179+
/* Our desired styles */
179180
font-size: 14px;
180181
color: #101828;
181182
overflow: hidden;
182183
text-overflow: ellipsis;
183184
white-space: nowrap;
185+
/* Reset conflicting properties from FieldComparisonModal.css */
186+
background: transparent;
187+
border: none;
188+
border-radius: 0;
189+
padding: 0;
190+
font-family: inherit;
191+
min-height: auto;
192+
word-break: normal;
184193
}
185194

186-
.field-value.org-id {
195+
.profile-card .field-value.org-id {
187196
font-family: monospace;
188197
font-size: 13px;
189198
}
190199

191-
.field-icon {
200+
.profile-card .field-icon {
192201
color: #9ca3af;
193202
font-size: 14px;
194203
flex-shrink: 0;
195204
}
196205

197206
/* Field with action button (copy) */
198-
.field-with-action {
207+
.profile-card .field-with-action {
199208
display: flex;
200209
align-items: center;
201210
gap: 8px;
202211
}
203212

204-
.field-with-action .field-box {
213+
.profile-card .field-with-action .field-box {
205214
flex: 1;
206215
}
207216

0 commit comments

Comments
 (0)