Skip to content

Commit

Permalink
right-align the button
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed May 11, 2023
1 parent 0aeef93 commit 6a8db2c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/format-library/src/language/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SelectControl,
Button,
Popover,
__experimentalHStack as HStack,
} from '@wordpress/components';
import { useState } from '@wordpress/element';
import { applyFormat, removeFormat, useAnchor } from '@wordpress/rich-text';
Expand Down Expand Up @@ -108,11 +109,13 @@ function Edit( props ) {
] }
onChange={ ( val ) => setDir( val ) }
/>
<Button
variant="primary"
type="submit"
text={ __( 'Apply' ) }
/>
<HStack alignment="right" spacing="0">
<Button
variant="primary"
type="submit"
text={ __( 'Apply' ) }
/>
</HStack>
</form>
</Popover>
) }
Expand Down

0 comments on commit 6a8db2c

Please sign in to comment.