Skip to content

fix(examples): form-field custom control example not working #13043

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

Conversation

devversion
Copy link
Member

@devversion devversion commented Sep 8, 2018

  • Removes a workaround that allowed the secondary component of the form-field-custom-control to use the primary asset files (form-field-custom-control-example.(html|css are reserved for the primary example component). This workaround caused the example to not render properly inside of StackBlitz.
  • Fixes that the build-example-module task does not properly detect stylesheet additional files.

Fixes #13021. Depends on angular/material.angular.io#516


In combination with the docs update, this looks the following

image

@devversion devversion added pr: merge safe target: patch This PR is targeted for the next patch release labels Sep 8, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 8, 2018
@@ -0,0 +1,21 @@
div {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these use css classes instead of div etc.? I know it was like this before, but it's not consistent with the other examples.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Updated.

* Removes a workaround that allowed the secondary component of the form-field-custom-control to use the primary asset files (`form-field-custom-control-example.(html|css` are reserved for the primary example component). This workaround caused the example to not render properly inside of StackBlitz.
* Fixes that the build-example-module task does not properly detect stylesheet additional files.

Fixes angular#13021. Depends on angular/material.angular.io#516
@devversion devversion force-pushed the fix/examples-form-field-custom-control-example branch from 9885920 to e44ca09 Compare September 11, 2018 11:43
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Sep 11, 2018
@jelbourn jelbourn merged commit 4f58d5a into angular:master Sep 11, 2018
jelbourn pushed a commit that referenced this pull request Sep 11, 2018
* Removes a workaround that allowed the secondary component of the form-field-custom-control to use the primary asset files (`form-field-custom-control-example.(html|css` are reserved for the primary example component). This workaround caused the example to not render properly inside of StackBlitz.
* Fixes that the build-example-module task does not properly detect stylesheet additional files.
* Depends on angular/material.angular.io#516
Fixes #13021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stackblitz in documentation for "Creating a custom form field control" is showing an error.
4 participants