-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[Tags] Add pt-interactive support #2251
Conversation
@llorca merge |
@@ -1,6 +1,9 @@ | |||
// Copyright 2015 Palantir Technologies, Inc. All rights reserved. | |||
// Licensed under the terms of the LICENSE file distributed with this project. | |||
|
|||
$tag-default-color: $gray1; | |||
$dark-tag-default-color: $gray5; |
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.
add !default
to both of these
Merge remote-tracking branch 'origin/develop' into al/tags-interactivePreview: documentation | landing | table |
i feel like minimal hover state is too strong compared to default state -- too big of a change. |
increase contrast of regular interactive tagsPreview: documentation | landing | table |
@@ -48,7 +65,7 @@ export class Tag extends React.PureComponent<ITagProps, {}> { | |||
) : null; | |||
|
|||
return ( | |||
<span {...htmlProps} className={tagClasses}> | |||
<span {...htmlProps} className={tagClasses} onClick={onClick}> |
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.
revert onClick
change
@@ -18,6 +18,22 @@ export interface ITagProps extends IProps, IIntentProps, React.HTMLAttributes<HT | |||
*/ | |||
active?: boolean; | |||
|
|||
/** | |||
* Whether the tag should respond to user interactions. If set to `true`, |
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.
"visually respond"
address commentsPreview: documentation | landing | table |
add CSS API docsPreview: documentation | landing | table |
@@ -63,6 +64,7 @@ Styleguide pt-tag | |||
|
|||
.pt-large - Large | |||
.pt-round - Rounded corners, ideal for badges | |||
.pt-interactive - Hover and active effects |
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.
@llorca i added CSS example for minimal tags
Update _tag.scssPreview: documentation | landing | table |
No description provided.