-
Notifications
You must be signed in to change notification settings - Fork 19
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
Icons #29
Comments
I think this is an worthy developer UX improvement. Our current support for icons is poor; I think just this:
... and support for a yew-bootstrap/packages/yew-bootstrap/src/component/navbar.rs Lines 195 to 197 in a8b48fb
Which is used in a clunky way that can't be compile-time checked: yew-bootstrap/examples/basics/src/main.rs Line 21 in a8b48fb
Your approach is better. I see some nightly hints in your code ( Happy to accept a PR! |
Sounds good, I'll create a PR (may take a few days). On the branch /~https://github.com/alexkazik/yew-bootstrap-icons/tree/icons all icons are shown in the rustdoc (the BI documentation adds bootstrap-icons via cdn). It's great that it's possible but should it be used? (Just check it out and run doc to see it.) Unless you have another idea I'll place it in a icons module, and document that module (what's in my current root doc / readme). |
Ah, my mistake maybe;
I took a look; I don't have strong feelings about this, but I don't think I personally would use it when coding. I think I'd use my IDE to click-through to the generated file.
I like that approach; I'm working through that documentation now. I prefer the way This makes the user experience much smoother; if they want to self-generate, they can, but they don't have to. No futzing about in |
I have a very first version ready at /~https://github.com/alexkazik/yew-bootstrap/commits/icons. All icons are available all the time, the build script takes care of that. But since trunk can only copy files already there or created by running a binary, |
I've never been a fan of using code formatters, as I often disagree with their choices, but I'll give |
The big advantage of While I started with customize my settings I removed most of them (except that I'd like to use group_imports:One, because that's what I do anyway but it's nightly only; and the other exception is my first project which started with indent of 2 and I don't want to reformat all). And I don't want to force you into it, it's just a suggestion because it can help a lot. |
I didn't want to write all the icons by hand and created some functions in app to generate all icons as code.
Now I've moved it to it's own crate: /~https://github.com/alexkazik/yew-bootstrap-icons
If you're interested I'll create a PR.
The text was updated successfully, but these errors were encountered: