-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Hashtag (#) breaks standard HTML/CSS #11
Comments
Okay, so I figured out (by re-reading the <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<defs>
<linearGradient x1="0%" y1="100%" x2="100%" y2="0%">
<stop offset="0%"></stop>
<stop stop-color="#()37EF81" offset="100%"></stop>
</linearGradient>
</defs>
<!-- ......... -->
</svg> Also - returning to my "popping a modal" example - people who are using Bootstrap (which is quite a lot) are used to reference modals by their ID's. <button type="button" data-toggle="modal" data-modal="#()modal"></button>
<div id="modal">This is a modal</div> Having worked a lot with HTML/CSS and knowing others who do, turning every Personal opinion is still that the token should either change to |
Closing after a lot of discussion around this just to start some cleanup. Let's revisit if we need to 👍 |
I am not sure if this is the correct issue to resurrect this topic in, but here goes. Unfortunately it is currently not possible to reference fragment identifiers in leaf templates. Example:
As stated here: https://tools.ietf.org/html/rfc3986#section-2.2, the # (amongst others) is a reserved URI character and is used in URLs to reference fragments of a page. A solution could be to make the token symbol customizable - but it would require configuration from developers if the default is kept as #. Resources: |
@dennishn you can use |
I'm not sure using the
#
as a token is wise. Trying it out I hit quite a few cases where it completely standard HTML/CSS was interpreted as Leaf methods.Two quick examples
A common way to "pop" modals is using an
<a>
where thehref
is just a#
.(I know you could just use
<button>
instead of<a>
but not everybody do that)You also won't be able to use inline hex-colors, which is also something a lot of people are doing (at least the lazy ones).
There are probably a lot more cases, where the
#
would make Leaf conflict with normal standard HTML/CSS. So maybe it would be better/wiser to use a different token?Or maybe change it to a double
##
? I don't know. All I know is a single#
unfortunately causes quite the trouble :(The text was updated successfully, but these errors were encountered: