Motivation
This is also helpful because it resolves the problem of literal pipes in aliases.
As a wikidata editor
I want to see existing aliases in individual lines
so that I can edit them easily without bothering about syntax
Mock
Acceptance Criteria
- When switching to edit mode, each alias gets their own input line
- The pipes are not visible anymore
- There is a new empty line below all entered aliases
- the new line can be reached by either clicking/tapping on the line or using the tab key (this is possible on some mobile keyboards indicated by "up" and "down" arrows in the keyboard area)
- If users enter info here, it is saved as a new alias
- Once the user has entered a first character to the line, a new line appears allowing to add yet another alias
- The empty alias line should not have any effect on saving
- When the contents of an alias is fully deleted or contains only whitespace and then the line loses focus, the line disappears
- When the aliases segment is out of focus again, they stay extended, and would only collapse once users click on save or cancel
- The individual aliases can be navigated with the common tab/shift-tab behavior
- The individual alias, when focused, are styled as follows
- the background color set to Accent90 (#EAF3FF)
- text color set to Base20 (#222)
- no outline
- Aliases that are longer than the input field allows are wrapped
- In reading mode, aliases are still shown right behind each other, separated by the internationalized language separation character
Open questions
- Is it possible to have multiline aliases?
- answer: no
- Will there be the danger of mixing up long wrapped aliases with being two aliases
- answer: long lines will be wrapped! And it will be clear which are wrapped vs not by the spacing: see here
Notes
We are mainly following the paradigm that is currently implemented on desktop.