Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/block-library/src/paragraph/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
useBlockEditingMode,
} from '@wordpress/block-editor';
import { getBlockSupport } from '@wordpress/blocks';
import { formatLtr } from '@wordpress/icons';
import { formatLTR } from '@wordpress/icons';
/**
* Internal dependencies
*/
Expand All @@ -32,7 +32,7 @@ function ParagraphRTLControl( { direction, setDirection } ) {
return (
isRTL() && (
<ToolbarButton
icon={ formatLtr }
icon={ formatLTR }
title={ _x( 'Left to right', 'editor button' ) }
isActive={ direction === 'ltr' }
onClick={ () => {
Expand Down
4 changes: 4 additions & 0 deletions packages/icons/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- Rename `formatLtr` icon to `formatLTR`. ([#76074](https://github.com/WordPress/gutenberg/pull/76074))

## 11.7.0 (2026-02-18)

### Enhancements
Expand Down
6 changes: 4 additions & 2 deletions packages/icons/lib/generate-library.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,12 @@ async function generateIndex() {
.map( ( file ) => {
const importPath = path.basename( file, '.tsx' );

// Camel case, but retaining 'RTL' acronym in uppercase
// Camel case, but retaining acronyms in uppercase
const identifier = importPath
.replace( /-([0-9A-Za-z])/g, ( _, c ) => c.toUpperCase() )
.replace( /Rtl\b/, 'RTL' );
.replace( /Ltr\b/, 'LTR' )
.replace( /Rtl\b/, 'RTL' )
.replace( /Ne\b/, 'NE' );

return `export { default as ${ identifier } } from './${ importPath }';`;
} )
Expand Down
6 changes: 3 additions & 3 deletions packages/icons/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1307,9 +1307,9 @@
"filePath": "library/reset.svg"
},
{
"slug": "resize-corner-n-e",
"label": "Resize Corner N E",
"filePath": "library/resize-corner-n-e.svg"
"slug": "resize-corner-ne",
"label": "Resize Corner NE",
"filePath": "library/resize-corner-ne.svg"
},
{
"slug": "reusable-block",
Expand Down
Loading