Skip to content

Fix: Prevent .directorist-content-active CSS from overriding theme list styles#2762

Open
RabbiIslamRony wants to merge 1 commit intosovware:developmentfrom
RabbiIslamRony:fix/directorist-entry-content-ul-style
Open

Fix: Prevent .directorist-content-active CSS from overriding theme list styles#2762
RabbiIslamRony wants to merge 1 commit intosovware:developmentfrom
RabbiIslamRony:fix/directorist-entry-content-ul-style

Conversation

@RabbiIslamRony
Copy link
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

This PR removes the CSS rule:

.directorist-content-active .entry-content ul {
margin: 0;
padding: 0;
}

This rule was unintentionally overriding the default theme styling for unordered lists inside .entry-content.

Issue

Because of the additional .directorist-content-active class, theme-level styling such as:

.entry-content ul

was being overridden. As a result, list styles were not displayed correctly on some sites.

Fix

Removed the CSS rule so that theme default list styling is respected and not overridden by the plugin.

Lists now follow the theme's default styling without requiring additional overrides.

Any linked issues

Fixes #
https://taiga-sovware-u10698.vm.elestio.app/project/directorist/issue/2717

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant