Skip to content

Commit

Permalink
Fix a problem caused by the merge conflict
Browse files Browse the repository at this point in the history
Replace the correct tools panel item.
Add textOrientation to the typography styles in the theme.json reference
  • Loading branch information
carolinan committed Apr 22, 2024
1 parent 71b0b8f commit 6e9e6a6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ Typography styles.
| textColumns | string | |
| textDecoration | string, object | |
| writingMode | string, object | |
| textOrientation | string, object | |
| textTransform | string, object | |

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,23 +530,6 @@ export default function TypographyPanel( {
/>
</ToolsPanelItem>
) }
{ hasWritingModeControl && (
<ToolsPanelItem
className="single-column"
label={ __( 'Orientation' ) }
hasValue={ hasWritingMode }
onDeselect={ resetWritingMode }
isShownByDefault={ defaultControls.writingMode }
panelId={ panelId }
>
<WritingModeControl
value={ writingMode }
onChange={ setWritingMode }
size="__unstable-large"
__nextHasNoMarginBottom
/>
</ToolsPanelItem>
) }
{ hasTextTransformControl && (
<ToolsPanelItem
label={ __( 'Letter case' ) }
Expand All @@ -565,6 +548,20 @@ export default function TypographyPanel( {
/>
</ToolsPanelItem>
) }
{ hasWritingModeControl && (
<ToolsPanelItem
label={ __( 'Text orientation' ) }
hasValue={ hasWritingMode }
onDeselect={ resetWritingMode }
isShownByDefault={ defaultControls.writingMode }
panelId={ panelId }
>
<WritingModeControl
value={ getValuefromWritingModeAndTextOrientation() }
onChange={ setWritingModeAndTextOrientation }
/>
</ToolsPanelItem>
) }
</Wrapper>
);
}

0 comments on commit 6e9e6a6

Please sign in to comment.