-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(md-checkbox): Implement md-checkbox. #131
Conversation
3246152
to
5901ed1
Compare
xmlns="http://www.w3.org/2000/svg" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
viewBox="0 0 24 24" | ||
xml:space="preserve"> |
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.
Are xml:space
and xmlns:xlink
necessary?
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 don't think xmlns:xlink
is but I'd argue xml:space
is because it explicitly instructs browsers how to parse the SVG XML. From the MDN Docs
Note that this attribute influences the way a browser should parse the xml content and therefore will change the way the DOM is built.
dab24e3
to
0ea6602
Compare
@@ -18,6 +18,11 @@ $pi: 3.14159265; | |||
// Easing Curves | |||
// TODO(jelbourn): all of these need to be revisited | |||
|
|||
// The default animation curves used by material design. | |||
$linear-out-slow-in-timing-function: cubic-bezier(0.0, 0.0, 0.2, 0.1) !default; |
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.
Can you prefix these variables with md-
? (it's a bug that the existing ones don't have a prefix)
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.
👍
3589e32
to
e579751
Compare
@jelbourn all changes made! |
var fixture: ComponentFixture; | ||
|
||
beforeEach(function(done: () => void) { | ||
builder.createAsync(CheckboxEndAlignedController).then(function(_fixture_) { |
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.
Rather than _fixture_
, I'd be fine with just saying f
(since the first thing you do is set it to fixture
)
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.
👍
e579751
to
1d20875
Compare
@jelbourn all changes made! |
LGTM @kara can you do a pass? I think it's generally good to have a second set of eyes on any larger change. |
@traviskaufman Looks like CI is failing:
Is this something we can change in the code? Looks like there's a missing polyfill. |
} | ||
|
||
.md-checkbox-background { | ||
@extend %md-checkbox-background; |
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.
Nitpick: do you think it's confusing that the class and the placeholder share the same name? Since the comment above cites the "outer box", that might be a more descriptive name for the placeholder.
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.
👍
1d20875
to
e5a1cde
Compare
@jelbourn @kara @marcysutton all changes made! |
@traviskaufman looks like there a few failures left on CI? |
@jelbourn looking into it now |
f1c1693
to
c9da559
Compare
This commit adds the `md-checkbox` component to the material2 repo. It includes unit tests and demos for the component. Note that while there is a demo which exhibits all functionality of the component, the "Nested Checklist" demo is still a WIP. Fixes angular#35
c9da559
to
20876f3
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit adds the
md-checkbox
component to the material2 repo. Itincludes unit tests and demos for the component. Note that while there
is a demo which exhibits all functionality of the component, the "Nested
Checklist" demo is still a WIP.
Fixes #35