-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Initial implementation of onHover
#448
Conversation
Package.resolved
Outdated
@@ -1,61 +0,0 @@ | |||
{ |
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.
Please revert the removal of this file. We'd like to keep it in the repository to make sure that our dependency tree is consistent across checkouts.
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.
Yep. My mistake.
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
protocol HoverActionType { |
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.
Is there any purpose to this protocol? It only seems to be used in the extension below, but doesn't seem to be required there.
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.
Good catch. I was replicating AppearanceActionType
, but that protocol is actually used elsewhere for casting, justifying its existence.
onHover
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.
Overall it's great to see onHover
finally implemented, but this needs fixes for linter warnings and also some snapshot tests for generated HTML. Thanks!
43bbec7
to
90ebbb5
Compare
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.
I see now that this is DynamicHTML
, so probably no snapshot test for this can be written at the moment. LGTM then, thanks!
I looked for existing test infrastructure when starting this PR, and I didn't find anything outside of |
Adds a basic implementation of action modifiers, allowing for dynamic event handling. For testing, adds a trivial
onHover
example.Very simple content compared to tracing the execution path of Tokamak :P