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

Unify k-text and k-writer #5569

Merged
merged 3 commits into from
Sep 6, 2023
Merged

Conversation

bastianallgeier
Copy link
Member

@bastianallgeier bastianallgeier commented Sep 5, 2023

When I went through a couple more display issues, I realized that we are basically use redundant styles for the writer and the text component. This leaves a lot of room for issues and already created some. I've moved all the text styles into the k-text component and applied k-text to the ProseMirror container. This way we can get rid of all those redundant styles. I fixed a few glitches along the way.

I've added a lot of new test setups for the text component to the sandbox to try all this.

@bastianallgeier bastianallgeier added this to the 4.0.0 milestone Sep 5, 2023
@bastianallgeier bastianallgeier requested a review from a team September 5, 2023 15:28
@distantnative
Copy link
Member

@bastianallgeier It looks like you have now link and list both in k-text but also individual files

@distantnative
Copy link
Member

And what happened to kbd?

@bastianallgeier
Copy link
Member Author

My bad. I didn't clean up those files after moving it back Text.vue.

I'm still not 100% decided on the best way to organize the styles. Should they all live in separate files or in a single file?

I moved the kbd styles to reset.css because they apply everywhere. I think that's in general a good rule of thumb.

@bastianallgeier bastianallgeier force-pushed the v4/enhancements/text-css branch from 7870332 to 0a5ccd2 Compare September 6, 2023 09:17
@bastianallgeier bastianallgeier modified the milestones: 4.0.0, 4.0.0-beta.1 Sep 6, 2023
@bastianallgeier bastianallgeier merged commit 5237c46 into v4/develop Sep 6, 2023
@bastianallgeier bastianallgeier deleted the v4/enhancements/text-css branch September 6, 2023 09:24
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