I'm curious about the origin of the color on this PrimeNG element. How can I go about changing it?

I'm currently working on a project using Angular 17, incorporating the Clarity and PrimeNG libraries for styling purposes. Within my angular.json file, I have included the following css files:

  • "node_modules/primeng/resources/themes/mdc-dark-indigo/theme.css",
  • "node_modules/primeng/resources/primeng.min.css",

While the styles are functional, I need to make some adjustments to align them better with the overall design of the product. The specific component I'm working with is a basic PrimeNG TabView:

<div class="recipe">
  <div class="tabs">
    <p-tabView>
      <p-tabPanel header="Settings">
          <ng-template pTemplate="header">
              <div class="expanded-click-area" routerLink="settings">
                  <fa-icon [icon]="faCog"></fa-icon>
                  Settings
              </div>
          </ng-template>
      </p-tabPanel>
      <p-tabPanel header="Phases">
          <ng-template pTemplate="header">
              <div class="expanded-click-area" (click)="navigateToRoute('phases')">
                  <fa-icon [icon]="faTasks"></fa-icon>
                  Phases
              </div>
          </ng-template>
      </p-tabPanel>
      <p-tabPanel header="Overview">
          <ng-template pTemplate="header">
              <div class="expanded-click-area" (click)="navigateToRoute('overview')">
                  <fa-icon [icon]="faPieChart"></fa-icon>
                  Overview
              </div>
          </ng-template>
      </p-tabPanel>
    </p-tabView>

  </div>
  <div class="content">
    <router-outlet></router-outlet>
  </div>
</div>

My main objective is to modify the bottom border color to #9FA8DA, as illustrated in this screenshot: https://i.sstatic.net/MqTbX.png

After disabling all borders via devtools, making replacements in theme.css, and rebuilding the page, the desired color change did not occur. I'm wondering where this particular style attribute originates within PrimeNG and how I can successfully alter it.

Answer №1

If you're feeling overwhelmed by trying to tweak an existing theme, consider exploring the custom themes documentation

Customizing Primeng themes

You can easily create your own themes using primeng-sass-theme. Give it a try and see if it resolves your concerns!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The struggle of media queries: How can you reset an element to its original display style when it's set to none?

If faced with the following scenario, how would you handle it? Imagine this: You need to hide a visible element when a specific media query is met: .myElement { display: block; } and the media query to hide it: @media (min-width: 1000px) { .myElement ...

Maximizing the efficiency of critical rendering path while utilizing bootstrap

Is it feasible to enhance the critical rendering path (like Google and Facebook) while utilizing Bootstrap 3? Facebook opted for inlining styles connected to the header and sidebars. Meanwhile, Google inlined all styles since they have minimal styles for ...

Discover how to reveal a hidden div tag upon hovering over a different div tag using CSS

I have a minor issue that I need help with. I want to achieve an effect where one div is displayed when another div is hovered over in CSS. Once the cursor is removed, the second div should be hidden again. How can I accomplish this? There is a second hid ...

Shifting an image outside of the container in a Bootstrap 4 card header

I am attempting to create a design similar to this: https://i.sstatic.net/OR4Em.png I am currently using Bootstrap 4 cards, but I am struggling to figure out the best way to move the icon/image outside of the Cards header. I have experimented with differe ...

Tips for testing the RXJS pipe method using Jasmine

I need assistance with covering the pipe function of RXJS in Angular/Jasmine. An error is popping up: TypeError: this.element.children.pipe is not a function Here's the snippet of code causing the issue: ngOnInit() { this.element.children.pipe( ...

"An issue with IE9 causing small dots on rounded corners during rendering

Help Needed: Strange IE9 Rendering Issue I'm experiencing an odd rendering problem in Internet Explorer 9. You see those little white dots on the left? What could be causing them? Any suggestions on how to remove them? Microsoft, why always so myst ...

Reach out to the property via phone if it is listed in the JSON

When receiving JSON data from the server, I come across two different structures: JSON 1: { [{ name : 'sample1', code:'sample code 1', data : { display :'test' } ...

What is the best way to guide a user to a specific page based on the choice they made after submitting a form?

My form includes a list of 6 options where users can only select one. After submitting the form, I want to redirect them to a specific page based on their selection. For example, I have the following 3 options: Facebook Youtube Twitter If a user selects ...

Sign up for a feature that provides an observable exclusively within an if statement

There is an if clause in my code that checks for the presence of the cordova object in the window global object. If cordova is present, it will make a http request and return the default angular 2 http observable. If the application is in a web context wh ...

Creating a loading spinner that displays while waiting for a response from a service

Forgive me if this question seems basic, but I'm still new to the world of angular and observables are a mystery to me. I have some code where the options of the second select are dependent on the value selected in the first select. There's a me ...

Reverse the order of jQuery toggle animations

Looking for something specific: How can I create a button that triggers a script and then, when the script is done, reverses the action (toggles)? (I am currently learning javascript/jquery, so I am a beginner in this field) Here's an example: ...

Guide to switching a button using JavaScript

I am trying to create a button that will toggle the font size between 16px and 14px when clicked. The button text should also change from "Increase Font" to "Decrease Font" accordingly. UPDATE: I managed to get it working, but it only toggles twice and th ...

Issue encountered when attempting to assign an action() to each individual component

I'm facing an issue with the button component I've created. import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'app-button', template: ` <ion-button color="{{color}}" (click)="action()"&g ...

The issue of the Angular click event not functioning properly arises specifically when dealing with dynamic lists

It seems like Angular is not capturing the "Click" event properly. I am using the "Swiper" library to build a carousel in Stenciljs. After running some tests in the code, the issue appears to be related to Angular. When my carousel contains 5 elements, onl ...

When dynamically adding input fields in Bootstrap, there is a smaller gap between inline inputs

When adding a new list item dynamically in a modal using jQuery append, the spacing in the first li element seems to have a larger gap between the input fields compared to the rest that are added later. Even after checking the developer tools and confirmin ...

icon not appearing on the page

Currently, I am working on a project for a small company and utilizing this npm package version 3.0.1 to access material-design-icons. I've successfully displayed icons like: <mat-icon class="material-icons">info_outline</mat-icon&g ...

What is the method for adjusting the width of a Bootstrap 4 toast message?

I have a webpage featuring a Bootstrap 4 toast with the position set as position: fixed. The entire code snippet for the toast section is shown below: <div class="container mt-5"> <button type="button" class="btn btn-pri ...

Shadows cause disruption

There are two elements in my header: a horizontally repeated stripe and the logo. The issue I am facing is that the shadow of the logo is conflicting with the shadow of the stripe. #header { width: 100%; height: 90px; background: url('../images ...

Position filter forms on the left side to align with bootstrap cards

I'm having trouble aligning the cards using Bootstrap's row and col- classes. The first three are behaving as expected, but the fourth one isn't cooperating. Any idea why this might be happening and any solutions you can suggest? View the i ...

When the container size increases, elements may overflow and be pushed outside the boundaries

After adjusting the CSS in ".container" from "width:800px" to "width:1900px", all the elements become misaligned. The orange box is no longer centered and instead leans towards the left side. I'm curious if anyone knows why this is happening? A friend ...