Skip to content

Conversation

@Alex-stack-cell
Copy link

Problem

The style input property is declared but never applied in the template. The styleClass input is applied to the host element, but users typically want to style the visible content wrapper.

Current Behavior

  Content
  • style is ignored completely
  • styleClass="mt-2" applies to <p-message> host, not the visible content div

Expected Behavior

  • style should apply inline styles to the content wrapper
  • styleClass should apply classes to the content wrapper (where it's visually effective)

Changes

  • Added [ngStyle]="style" to content wrapper div
  • Moved styleClass from host binding to content wrapper
  • Host element retains only base component classes

Breaking Changes

None - this fixes currently non-functional behavior

Defect Fixes

When submitting a PR, please also create an issue documenting the error and manually link to an issue.

Feature Requests

Due to company policy, we are unable to accept feature request PRs with significant changes as such cases has to be implemented by our team following our own processes.
Smaller scaled feature implementations such as adding a property to a component will be considered for merging.

## Problem
The `style` input property is declared but never applied in the template.
The `styleClass` input is applied to the host element, but users typically want to style the visible content wrapper.

## Current Behavior
```html

  Content

```
- `style` is ignored completely
- `styleClass="mt-2"` applies to `<p-message>` host, not the visible content div

## Expected Behavior
- `style` should apply inline styles to the content wrapper
- `styleClass` should apply classes to the content wrapper (where it's visually effective)

## Changes
- Added `[ngStyle]="style"` to content wrapper div
- Moved `styleClass` from host binding to content wrapper
- Host element retains only base component classes

## Breaking Changes
None - this fixes currently non-functional behavior
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