Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

287
Views
Eliminación de estilos CSS inyectados automáticamente en Angular 2/ Ionic 2

El problema que tengo es que cuando agrego el gesto ionic 2 (presionar) en un botón, sigue agregando automáticamente estilos en línea a ese botón.

¿Hay alguna manera de anular el estilo que agrega?

Botón

 <button ion-button (press)="toggleFavourite(sound)" (click)="share(sound.file)"></button>

CSS que agrega debido al gesto (presionar).

 style=" touch-action: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede hacerlo como se muestra a continuación en su archivo page.scss .

Nota: ¡No uses !import hack. Lo cual es muy MALO.

página.scss

 .ios, .md, .wp { page-my { .my-gesture { touch-action: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } }

página.html

 <button ion-button class="my-gesture" (press)="toggleFavourite(sound)" (click)="share(sound.file)"></button>
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!