question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tour of Heroes Docs: Missing CSS Styles in src/styles.css

See original GitHub issue

Description

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

  1. Create new project in TOH Part 0 and apply code snippets to project
  2. Follow steps in TOH part 1 and apply code snippets
  3. Follow steps in TOH part 2 and apply code snippets
  4. 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 TOH-p2-button-styles-actual

Expected TOH-p2-button-styles-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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
geromegrignoncommented, Mar 14, 2022

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.

1reaction
geromegrignoncommented, Mar 14, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found