Skip to content

Commit

Permalink
feat: new extensions hook PropertyDetailsCell + wrap property name in…
Browse files Browse the repository at this point in the history
…to span
  • Loading branch information
RomanHotsiy committed Oct 16, 2020
1 parent f5eeacf commit 0703f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/common-elements/fields-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export const PropertyDetailsCell = styled.td`
border-left: none;
}
`}
${extensionsHook('PropertyDetailsCell')};
`;

export const PropertyBullet = styled.span`
Expand Down
4 changes: 2 additions & 2 deletions src/components/Fields/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ 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>}
</ClickablePropertyNameCell>
) : (
<PropertyNameCell className={deprecated ? 'deprecated' : undefined} kind={kind} title={name}>
<PropertyBullet />
{name}
<span>{name}</span>
{required && <RequiredLabel> required </RequiredLabel>}
</PropertyNameCell>
);
Expand Down

0 comments on commit 0703f73

Please sign in to comment.