Title: CSS Selector is Missing an _ngcontent attribute · Issue #50678 · angular/angular · GitHub
Open Graph Title: CSS Selector is Missing an _ngcontent attribute · Issue #50678 · angular/angular
X Title: CSS Selector is Missing an _ngcontent attribute · Issue #50678 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When you have a selector like the following in a component with encapsulated styles input[type="search"] + button there shoul...
Open Graph Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When you have a selector like the following in a component with encapsulated styles i...
X Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When you have a selector like the following in a component with encapsulated styl...
Opengraph URL: https://github.com/angular/angular/issues/50678
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CSS Selector is Missing an _ngcontent attribute","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nDon't known / other\n\n### Is this a regression?\n\nNo\n\n### Description\n\nWhen you have a selector like the following in a component with encapsulated styles `input[type=\"search\"] + button` there should be an _ngcontent attribute added to the selector that actually runs in the browser (on both elements). For example, `input[type=\"search\"][_ngcontent-ng-c2543699087] + button[_ngcontent-ng-c2543699087]`. \r\n\r\nWhen you run a build the following selector will run `input[type=search]+button[_ngcontent-c2543699087]`\r\n\r\nNote that when you run a serve the correct selector will run.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/HazzMan2409/ng-attribute-selector-issue\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 16.0.5\r\nNode: 16.18.0\r\nPackage Manager: npm 8.19.2\r\nOS: darwin x64\r\n\r\nAngular: 16.0.5\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1600.5\r\n@angular-devkit/build-angular 16.0.5\r\n@angular-devkit/core 16.0.5\r\n@angular-devkit/schematics 16.0.5\r\n@schematics/angular 16.0.5\r\nrxjs 7.8.1\r\ntypescript 5.0.4\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/HazzMan2409","@type":"Person","name":"HazzMan2409"},"datePublished":"2023-06-12T14:12:32Z","url":"https://github.com/angular/angular/issues/50678"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4ddf3968-62b8-8bd6-158d-a4197d700566 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B62C:237673:855BD8:B394C1:6B00E2F4 |
| html-safe-nonce | fdc80f9e664708caca91fb9dbbefe4cbf8b72e18fae848ad13ccc9dd1ca1dc5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjJDOjIzNzY3Mzo4NTVCRDg6QjM5NEMxOjZCMDBFMkY0IiwidmlzaXRvcl9pZCI6IjY1MTY3NTUxNTU2MjEzMDcxMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3e7a9218da4803f301ac1e3da4ce4270f9a3090ebe2c47996eb87736a01c6d06 |
| hovercard-subject-tag | issue:1752862188 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/50678/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7115630d492212ee4ba6c8c12a5b85639ea0d17b2b16a72cb49f35b4333f68cd/angular/angular/issues/50678 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7115630d492212ee4ba6c8c12a5b85639ea0d17b2b16a72cb49f35b4333f68cd/angular/angular/issues/50678 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When you have a selector like the following in a component with encapsulated styles i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HazzMan2409 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width