Skip to content

Commit b0ba974

Browse files
authored
docs(Portal): wrap text of property table description (#4543)
1 parent 4f99680 commit b0ba974

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/dnb-design-system-portal/src/shared/parts/PropertiesTable.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const components = {
1111
}
1212

1313
const StyledTable = styled(Table)`
14-
td {
14+
td:not(.description) {
1515
white-space: nowrap;
1616
}
1717
`
@@ -153,7 +153,7 @@ export default function PropertiesTable({
153153
)}
154154
</Td>
155155
)}
156-
<Td>
156+
<Td className="description">
157157
{(!showDefaultValue || status === 'deprecated') && (
158158
<em>({status}) </em>
159159
)}
@@ -173,7 +173,7 @@ export default function PropertiesTable({
173173
<Th>Property</Th>
174174
<Th>Type</Th>
175175
{showDefaultValue && <Th>Default value</Th>}
176-
<Th>Description</Th>
176+
<Th className="description">Description</Th>
177177
</Tr>
178178
</thead>
179179
<tbody>{tableRows}</tbody>

0 commit comments

Comments
 (0)