-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add the dir HTML attribute #72
Conversation
Hello @JohnSundell, could you please review my PR? Thanks for your time and support. |
Hello @JohnSundell, I'm sorry for any inconvenience. Is there a timeframe we can expect where you usually review PRs for Plot? Thank you. |
@MrSkwiggs regarding naming the method What do you think? |
Makes sense, just got confused initially thinking this was about directories 😆 |
@JohnSundell is there a problem with this PR preventing its merge? I have a need for this as well, but do not want to use it if there is an issue. |
@JohnSundell Checking on this again. It has been about 18 months since this was submitted. I really need this, and I am wondering if there is an issue preventing it from being accepted. |
Component modifiers should use Swift's default naming conventions, and not include abbreviations that are commonly used within HTML's naming conventions. Co-authored-by: Dorian <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A really great addition to Plot, thanks so much @alobaili, and I'm really sorry for taking so ridiculously long to review this!
I accepted @MrSkwiggs suggestion to rename |
Also use the new, long-form name within the unit tests.
@alobaili Alright, I just needed to update the unit tests for the new |
@JohnSundell Amazing! I'm glad everything worked out, and thank for accepting my PR. This is one of the very first contributions I made to open source projects that contained actual code 😄. Thank you for updating my fork as well 🙏. |
@alobaili Glad to hear it 😀 Really appreciate your pertinence in waiting for me to FINALLY have some time to go through these Plot PRs and review them. Thanks again for implementing this feature, I'll include it in a new release shortly 👍 |
Since I will be using this package to build my personal website, which will be supporting English and Arabic, I figured the best way to thank you was to add this small contribution.
I added the ability to add the
dir
attribute in both theNode
andComponent
based APIs.It is a global attribute that can be added to any HTML elemnt (technically any element including non-HTML, but I didn't focuse on XML in this PR).
I added a new enum called
Directionality
(the name is inspired from the spec linked above) to hold the three possible values. I made the case names clearer to read and added the actual HTML values as a raw value to each case.users can use this like so:
I hope I added them to the correct extensions.
Your discussions and comments are always welcome.