Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix: Change aria-label depending on content of paragraph block #11653
Additionally, quoting from #1659:
[sorry for my broken English]
The placeholder values:
I've updated the code to reflect the real state of this block; when empty it's functionally an empty block that by default accepts text to become a paragraph or the slash key to open the inserter.
Now the label instructs users what is there; when there is content: the label "Paragraph Block" is read. When there is no content: "Empty block; start writing or type forward slash to choose a block" is read.
I think that's a good solution for now.
I also tweaked the text as per @jasmussen's request.