Skip to content

Commit f95a497

Browse files
author
Steve Szyszkiewicz
committed
move style into css
1 parent 2cc68a7 commit f95a497

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.FieldCell {
22
&-label {
33
margin-top: -5px;
4+
&-deprecated {
5+
color: red;
6+
}
47
}
58
}
69

docs/src/components/tables/cells/ParamFieldCell.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ export default function ParamFieldCell(props) {
2323
let deprecatedWarning;
2424
if (record.deprecated) {
2525
deprecatedWarning = (
26-
<div className="FieldCell-label">
27-
{record.deprecated}
26+
<div className="FieldCell-label-deprecated">
27+
<small>
28+
{record.deprecated}
29+
</small>
2830
</div>
2931
);
3032
}
@@ -35,7 +37,9 @@ export default function ParamFieldCell(props) {
3537
{record.name}
3638
</div>
3739
{subLabel}
38-
{deprecatedWarning}
40+
<div>
41+
{deprecatedWarning}
42+
</div>
3943
</td>
4044
);
4145
}

0 commit comments

Comments
 (0)