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

POC: Start using Codex #745

Closed
wants to merge 2 commits into from
Closed

POC: Start using Codex #745

wants to merge 2 commits into from

Conversation

lucaswerkmeister
Copy link
Member

I thought the TextInput would be an easy component to start with. I was wrong, but hey, at least this mostly works. I also left some TODOs in the code as a treat.

Bug: T369505

I thought the TextInput would be an easy component to start with. I was
wrong, but hey, at least this mostly works. I also left some TODOs in
the code as a treat.

Bug: T369505
Use them as CSS variables, so they’ll automatically be updated when
MediaWiki ships a new Codex version without having to rebuild the app
(and they can depend on the skin too). To avoid including all the design
tokens in the build anyway (Vite doesn’t really support excluding CSS
imports yet, see vitejs/vite#18037), we have
to make sure to not import the tokens anywhere in the app (i.e. neither
in NewLexemeForm.vue nor in App.vue) – only directly in the index.html
(dev entry point).

Bug: T369505
@@ -3,6 +3,7 @@ import AnonymousEditWarning from '@/components/AnonymousEditWarning.vue';
import NewLexemeForm from '@/components/NewLexemeForm.vue';
import SearchExisting from '@/components/SearchExisting.vue';
import '@wmde/wikit-vue-components/dist/wikit-vue-components.css';
import '@wikimedia/codex/dist/codex.style.css';
Copy link
Member Author

Choose a reason for hiding this comment

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

Move this to index.html, we don’t want the codex CSS to be included in our build!

@lucaswerkmeister
Copy link
Member Author

Superseded by #746, I think.

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.

1 participant