René's URL Explorer Experiment


Title: Common CSS not applying when specifying platform specific · Issue #149 · NativeScript/angular · GitHub

Open Graph Title: Common CSS not applying when specifying platform specific · Issue #149 · NativeScript/angular

X Title: Common CSS not applying when specifying platform specific · Issue #149 · NativeScript/angular

Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): { "name": "stackblitz-nativescript-angular", "ma...

Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): { "name"...

X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): { "...

Opengraph URL: https://github.com/NativeScript/angular/issues/149

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Common CSS not applying when specifying platform specific","articleBody":"**Environment**\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\n```\n{\n  \"name\": \"stackblitz-nativescript-angular\",\n  \"main\": \"./src/main.ts\",\n  \"version\": \"1.0.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"@angular/animations\": \"~19.0.0\",\n    \"@angular/common\": \"~19.0.0\",\n    \"@angular/compiler\": \"~19.0.0\",\n    \"@angular/core\": \"~19.0.0\",\n    \"@angular/forms\": \"~19.0.0\",\n    \"@angular/platform-browser\": \"~19.0.0\",\n    \"@angular/platform-browser-dynamic\": \"~19.0.0\",\n    \"@angular/router\": \"~19.0.0\",\n    \"@nativescript/angular\": \"^19.0.0\",\n    \"@nativescript/core\": \"~8.8.0\",\n    \"rxjs\": \"~7.8.0\",\n    \"zone.js\": \"~0.15.0\"\n  },\n  \"devDependencies\": {\n    \"@angular-devkit/build-angular\": \"~19.0.0\",\n    \"@angular/compiler-cli\": \"~19.0.0\",\n    \"@nativescript/preview-cli\": \"^1.0.14\",\n    \"@nativescript/stackblitz\": \"0.0.8\",\n    \"@nativescript/tailwind\": \"^2.1.0\",\n    \"@nativescript/types\": \"~8.8.0\",\n    \"@nativescript/webpack\": \"~5.0.0\",\n    \"@ngtools/webpack\": \"~19.0.0\",\n    \"tailwindcss\": \"~3.4.0\",\n    \"typescript\": \"~5.6.0\"\n  }\n}\n```\n \n**Describe the bug**\nWhen adding platform specific css then the common.css is not being applied e.g: I have 3 css according to the docs: https://docs.nativescript.org/guide/styling#platform-specific-css\n\n**items.component.css**\n**items.component.ios.css**\n**items.component.android.css**\n\nWhen  `items.component.css` is imported into the  `items.component.android.css`  then `items.component.css` rule aren't applied.\n\n**To Reproduce**\n\u003c!-- Add commands used or steps taken to reproduce the behaviour. --\u003e\nAdd 3 css \n\n**items.component.css**\n**items.component.ios.css**\n**items.component.android.css**\n\nAdd styleUrl: 'items.component.css',  into items.component.ts\n\nUpdate items.component.html:\n\n```\n\u003cActionBar title=\"My App\"\u003e \u003c/ActionBar\u003e\n\n\u003cGridLayout rows=\"*,*\"\u003e\n  \u003cLabel row=\"0\" text=\"Test\" class=\"test\"\u003e\u003c/Label\u003e\n  \u003cListView row=\"1\" [items]=\"itemService.items()\"\u003e\n    \u003cng-template let-item=\"item\"\u003e\n      \u003cStackLayout [nsRouterLink]=\"['/item', item.id]\"\u003e\n        \u003cLabel [text]=\"item.name\" class=\"text-lg text-gray-500 p-4\"\u003e\u003c/Label\u003e\n      \u003c/StackLayout\u003e\n    \u003c/ng-template\u003e\n  \u003c/ListView\u003e\n\u003c/GridLayout\u003e\n```\nUpdate 3 css file each with different rules: \n\nitems.component.css \n```\n.test {\n  text-transform: uppercase;\n}\n```\nitems.component.android.css\n\n```\n.test {\n  color: purple;\n}\n```\nitems.component.ios.css\n```\n.test {\n  color: green;\n}\n```\n\n**Expected behavior**\n\nExpect thar the items.component.css  rule be applied for Test word be in Uppercase but only color changes in ios and android correctly.\n\n**Sample project**\n\u003c!-- If possible, provide a link from the [Playground](https://play.nativescript.org) with reproduction of the problem. If not, consider attaching a sample project or link to a repository with such project. --\u003e\n\n**Additional context**\n\u003c!-- Add any other context about the problem here. --\u003e\n\nWhat I noticed is that it prints this in the console: resolving \"/home/projects/nativescript-stackblitz-templates-7sgpxgkm/src/app/item/items.component.css\" to \"/home/projects/nativescript-stackblitz-templates-7sgpxgkm/src/app/item/items.component.android.css\"\n\nMore info on this video as well: https://www.youtube.com/watch?v=v5g6irUI704 \n","author":{"url":"https://github.com/lano-vargas","@type":"Person","name":"lano-vargas"},"datePublished":"2025-01-29T11:41:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/149/angular/issues/149"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:061eac28-9f65-e033-e67c-c3ab76432a47
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC878:203C06:351C604:49EF1C2:6A635469
html-safe-nonce52546384afcbc2b69219e51011ec12c70431882c0d10a14a3ab6926c024e4beb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODc4OjIwM0MwNjozNTFDNjA0OjQ5RUYxQzI6NkE2MzU0NjkiLCJ2aXNpdG9yX2lkIjoiNTYxODc5NTU5MjczMzExOTU5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace25ea80328e4abef2c067af94d50c8c6d14726dff1541676285ca84cd69f8011
hovercard-subject-tagissue:2817972275
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/angular/149/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e643535b4a4bf6541236de4c1bbd5e8959f3b532f715cfd57da49bb8e6ae4de8/NativeScript/angular/issues/149
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e643535b4a4bf6541236de4c1bbd5e8959f3b532f715cfd57da49bb8e6ae4de8/NativeScript/angular/issues/149
og:image:altEnvironment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): { "name"...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelano-vargas
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/angular git https://github.com/NativeScript/angular.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id302428305
octolytics-dimension-repository_nwoNativeScript/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id302428305
octolytics-dimension-repository_network_root_nwoNativeScript/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release990295d92a4cc7b63fbbd83a046217cd7d77d49c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/angular/issues/149#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fangular%2Fissues%2F149
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fangular%2Fissues%2F149
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fangular
Reloadhttps://github.com/NativeScript/angular/issues/149
Reloadhttps://github.com/NativeScript/angular/issues/149
Reloadhttps://github.com/NativeScript/angular/issues/149
Please reload this pagehttps://github.com/NativeScript/angular/issues/149
NativeScript https://github.com/NativeScript
angularhttps://github.com/NativeScript/angular
Please reload this pagehttps://github.com/NativeScript/angular/issues/149
Notifications https://github.com/login?return_to=%2FNativeScript%2Fangular
Fork 13 https://github.com/login?return_to=%2FNativeScript%2Fangular
Star 55 https://github.com/login?return_to=%2FNativeScript%2Fangular
Code https://github.com/NativeScript/angular
Issues 39 https://github.com/NativeScript/angular/issues
Pull requests 4 https://github.com/NativeScript/angular/pulls
Actions https://github.com/NativeScript/angular/actions
Projects https://github.com/NativeScript/angular/projects
Security and quality 0 https://github.com/NativeScript/angular/security
Insights https://github.com/NativeScript/angular/pulse
Code https://github.com/NativeScript/angular
Issues https://github.com/NativeScript/angular/issues
Pull requests https://github.com/NativeScript/angular/pulls
Actions https://github.com/NativeScript/angular/actions
Projects https://github.com/NativeScript/angular/projects
Security and quality https://github.com/NativeScript/angular/security
Insights https://github.com/NativeScript/angular/pulse
Common CSS not applying when specifying platform specifichttps://github.com/NativeScript/angular/issues/149#top
https://github.com/lano-vargas
lano-vargashttps://github.com/lano-vargas
on Jan 29, 2025https://github.com/NativeScript/angular/issues/149#issue-2817972275
https://docs.nativescript.org/guide/styling#platform-specific-csshttps://docs.nativescript.org/guide/styling#platform-specific-css
https://www.youtube.com/watch?v=v5g6irUI704https://www.youtube.com/watch?v=v5g6irUI704
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.