Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Codex Field + TextInput instead of Wikit TextInput #765

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

lucaswerkmeister
Copy link
Member

Change the lemma to not use Wikit anymore. In Codex, this corresponds to two components, so use both.

The spacing of the “required” asterisk is done differently – it’s no longer in a flex container, so establish the spacing using margin instead. The asterisk is now also part of the actual element, which isn’t ideal but I think can’t be avoided within Codex. (Note that Codex doesn’t want us to indicate required fields at all; see also T374432.)

Bug: T370054


The second commit is optional, if you don’t like it I can take it out again:


Restructure error computation

Since Codex wants the status and messages as separate props, but we compute them at the same time, let’s have the computed return an object with both props.

Change the lemma to not use Wikit anymore. In Codex, this corresponds to
two components, so use both.

The spacing of the “required” asterisk is done differently – it’s no
longer in a flex container, so establish the spacing using margin
instead. The asterisk is now also part of the actual <label> element,
which isn’t ideal but I think can’t be avoided within Codex. (Note that
Codex doesn’t want us to indicate required fields at all; see also
T374432.)

Bug: T370054
Since Codex wants the status and messages as separate props, but we
compute them at the same time, let’s have the computed return an object
with both props.

Bug: T370054
Copy link
Contributor

@codders codders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm +1

src/components/LemmaInput.vue Show resolved Hide resolved
@lucaswerkmeister lucaswerkmeister merged commit 924e774 into main Sep 25, 2024
3 checks passed
@lucaswerkmeister lucaswerkmeister deleted the codex-field branch September 25, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants