StackExchange / StackExchange/Stacks-Editor
bug(rich-text) no highlight on selected HR element
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 437
- Forks
- 61
- Avg merge
- 16h 2m
- Merged PRs (30d)
- 8
Description
Describe the bug
In rich text mode an horizontal rule
does not have a selection highlight whereas surrounding paragraphs have it.
To Reproduce
- RT mode. Type some text, add a HR, type some more text
- Select all text.
- Observe that there is nothing indicating that the HR is selected. If you delete, it is all gone
- Also possible to select the bottom text and the HR, but not the top text. Deleting will delete the HR and the bottom text. So it is selected.
Expected behavior
Some visual indicator when the HR is selected
Desktop (please complete the following information):
Windows 11 Chrome 103
Additional context
https://meta.stackexchange.com/a/380447/51
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in rich-text mode using the listed steps in Chrome, selecting text that includes an HR and observing its missing visual indicator. The fix is complete when a selected HR is visibly indicated consistently with surrounding paragraphs, while selecting and deleting the content still behaves correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100