Set Creation: Problem Entry (w/ MathLive Keyboard)
Opened this issue · 0 comments
This task defines the first section (equation portion) of the input area for problem creation
Full Mockup
Equation
An empty problem should contain the pencil icon (alt: "pencil emoji") and the placeholder text: "Type the problem here"
When clicked, this should clear to a blank line with a standard flashing cursor icon, and bring up the MathLive keyboard to allow for math input.
Overflow behavior
When the problem is long enough to necessitate overflow (e.g. would otherwise be going over the opposite edge of the box), it should overflow to the next line.
- Line breaks should occur primarily on spaces.
- If there are no spaces within a mathematical phrase, this should occur on operations (e.g. plus, minus, equals), where the operation is also brought down to the beginning of the new line.
- If there are no operations (e.g. just a really long number), the break can happen between characters.
Exception: If vertical formatting is an issue (for example, a very long mathematical phrase contained within fractions, square roots, or powers which cannot itself be contained within a single line), this can overflow horizontally using a horizontal scroll rather than dropping to the next line.
Reference
Style Guides: https://invis.io/CQYLLW8J49U
Mobile Mockups: https://invis.io/5HYLLW1G4BD
Fonts: https://www.dropbox.com/sh/c12m6ufweyds20d/AAAdXNPOt8e52DkSAr9pd-a-a/Fonts?dl=0
Acceptance criteria:
Given that I'm a user on the problem creation page, when I enter the text field to add my equation in the top box, the default text should disappear, the blinking cursor should come up, and the MathLive keyboard should appear. When I use the functions within the MathLive keyboard, they should be entered within the equation box. If I enter a particularly long problem, this should overflow to the next line on an intuitive break, such as an operator.