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;
|
border-left: none;
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
|
|
||||||
|
${extensionsHook('PropertyDetailsCell')};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const PropertyBullet = styled.span`
|
export const PropertyBullet = styled.span`
|
||||||
|
|
|
@ -64,7 +64,7 @@ export class Field extends React.Component<FieldProps> {
|
||||||
onKeyPress={this.handleKeyPress}
|
onKeyPress={this.handleKeyPress}
|
||||||
aria-label="expand properties"
|
aria-label="expand properties"
|
||||||
>
|
>
|
||||||
{name}
|
<span>{name}</span>
|
||||||
<ShelfIcon direction={expanded ? 'down' : 'right'} />
|
<ShelfIcon direction={expanded ? 'down' : 'right'} />
|
||||||
</button>
|
</button>
|
||||||
{required && <RequiredLabel> required </RequiredLabel>}
|
{required && <RequiredLabel> required </RequiredLabel>}
|
||||||
|
@ -72,7 +72,7 @@ export class Field extends React.Component<FieldProps> {
|
||||||
) : (
|
) : (
|
||||||
<PropertyNameCell className={deprecated ? 'deprecated' : undefined} kind={kind} title={name}>
|
<PropertyNameCell className={deprecated ? 'deprecated' : undefined} kind={kind} title={name}>
|
||||||
<PropertyBullet />
|
<PropertyBullet />
|
||||||
{name}
|
<span>{name}</span>
|
||||||
{required && <RequiredLabel> required </RequiredLabel>}
|
{required && <RequiredLabel> required </RequiredLabel>}
|
||||||
</PropertyNameCell>
|
</PropertyNameCell>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user