-
Notifications
You must be signed in to change notification settings - Fork 195
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 menu icon class #331
Add menu icon class #331
Conversation
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.
Thanks! There's one more instance of .spectrum-Icon
in the CSS, and we need backwards compatibility.
@@ -99,7 +99,7 @@ governing permissions and limitations under the License. | |||
} | |||
} | |||
|
|||
.spectrum-Icon { | |||
.spectrum-Menu-itemIcon { | |||
/* Don't get smaller, you're an icon! */ | |||
flex-shrink: 0; | |||
align-self: flex-start; |
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.
There's another instance below that needs this change. I would say we should also preserve support for the existing markup so we don't have to make a breaking change.
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.
Ahh! Good catch. Fixed!
This looks good. I'd say it's a |
Thanks @lazd ! Do I need to add a new commit with |
Adds
spectrum-Menu-itemIcon
classname.Description
Adds menu specific icon classname for issue #202 and changes all menu instance with icons.