Tour of Heroes Docs: Missing CSS Styles in src/styles.css
See original GitHub issueDescription
Tour of Heroes (TOH) Part 0 is missing button styles in src/styles.css
. As a result, when developers go through the TOH, button CSS styles that are present in the live examples in src/styles.css are not present in the code snippets at the end of the lesson. This is most apparent in TOH part-2, where a list of buttons are shown without the expected styles.
What is the affected URL?
https://angular.io/tutorial/toh-pt0
Please provide the steps to reproduce the issue
- Create new project in TOH Part 0 and apply code snippets to project
- Follow steps in TOH part 1 and apply code snippets
- Follow steps in TOH part 2 and apply code snippets
- View output project styling for heroes.component.html without the expected button styling
Minimal Reproduction https://stackblitz.com/edit/angular-ivy-3vttek?file=src%2Fstyles.css
Please provide the expected behavior vs the actual behavior you encountered
Expected: heroes.component.html will have expected button styles applied as seen in the live example for TOH part 2 Actual: heroes.component.html does not have button styles applied.
Please provide a screenshot if possible
Actual
Expected
Please provide the exception or error you saw
N/A
Is this a browser-specific issue? If so, please specify the device, browser, and version.
N/A
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Angular tutorial (tour of heroes) doesn't displays correct ...
When you create a new angular project from the cli, in app.component.html you obtain: <div style="text-align:center"> < ...
Read more >Component styles - Angular
Angular applications are styled with standard CSS. That means you can apply everything you know about CSS stylesheets, selectors, rules, and media queries ......
Read more >HTTP | AngularDart Community Documentation
In this page, you'll make the following improvements. Get the hero data from a server. Let users add, edit, and delete hero names....
Read more >CSP: style-src - HTTP - MDN Web Docs - Mozilla
The HTTP Content-Security-Policy (CSP) style-src directive ... Link: <https://not-example.com/styles/stylesheet.css>;rel=stylesheet
Read more >How to Troubleshoot CSS Not Working - WPForms
Troubleshooting CSS. Have you created custom CSS for your forms, but haven't been able to see those styles when viewing your site? There...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, i see sorry, I thought it was about button styles from the component not being featured in part 2.
Then I would be in favor of fixing it in part 0 as such styles are details beginners shouldn’t have to care about in order to focus on Angular framework itself for this tutorial.
There is already a dedicated section in TOH part 2 explaining how to add styles after adding buttons: https://angular.io/tutorial/toh-pt2#style-the-heroes