mirror of
https://github.com/Redocly/redoc.git
synced 2024-12-05 06:43:43 +03:00
feat: new extensions hook PropertyDetailsCell + wrap property name into span
This commit is contained in:
parent
d4016b8142
commit
0fae030996
|
@ -98,6 +98,8 @@ export const PropertyDetailsCell = styled.td`
|
|||
border-left: none;
|
||||
}
|
||||
`}
|
||||
|
||||
${extensionsHook('PropertyDetailsCell')};
|
||||
`;
|
||||
|
||||
export const PropertyBullet = styled.span`
|
||||
|
|
|
@ -64,7 +64,7 @@ export class Field extends React.Component<FieldProps> {
|
|||
onKeyPress={this.handleKeyPress}
|
||||
aria-label="expand properties"
|
||||
>
|
||||
{name}
|
||||
<span>{name}</span>
|
||||
<ShelfIcon direction={expanded ? 'down' : 'right'} />
|
||||
</button>
|
||||
{required && <RequiredLabel> required </RequiredLabel>}
|
||||
|
@ -72,7 +72,7 @@ export class Field extends React.Component<FieldProps> {
|
|||
) : (
|
||||
<PropertyNameCell className={deprecated ? 'deprecated' : undefined} kind={kind} title={name}>
|
||||
<PropertyBullet />
|
||||
{name}
|
||||
<span>{name}</span>
|
||||
{required && <RequiredLabel> required </RequiredLabel>}
|
||||
</PropertyNameCell>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user