-
Notifications
You must be signed in to change notification settings - Fork 28
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
Added property name to metadata - refs #66 #67
Added property name to metadata - refs #66 #67
Conversation
could you screenshot it real quick? |
do you think its clear without a label explaining what that means? On Thu, Dec 17, 2015 at 3:00 AM, Joe Critchley [email protected]
patrick |
Maybe we could have |
Or even something like Usage: if (Modernizr.history) {
// supported
}
else {
// not supported
} Which would allow us to call out async detects as: Modernizr.on('webp', function (result) {
if (result) {
// supported
}
else {
// not supported
}
}); |
I think we should separate the concern of what the alias is vs. how to use it. Perhaps a progressive "?" help icon next to it that, when clicked, opens up usage examples with that alias in context? Edit: Maybe not a "?" icon, but a "Usage" link? |
@stucox I think the usage is a great idea, but not for this specific issue. It means the user looses a lot of the scan ability still not sure about how to show this the right way :/ |
Lateral thought: Maybe the property name ( |
would we change what shows on the main list? |
looks great! re syntax hihglighting, it shoulnd't need any kind of library at all. its all static content that is the same across all examples (as far as structure goes). We just need to pick a color scheme and add the proper classes to each element on the examples, right? |
Looks awesome! Do it to it
|
Added property name to metadata - fixes #66
@patrickkettner merged to master, but it doesn't seem to have been deployed. might be related to #72 |
This adds the property name in a
<code />
element, next to the detect title. This gives the benefit of not having to look up or guess the property when writing CSS or JS.Refs #66