Skip to content

Label: Fix Cursor.Pointer and FileInput.Display property#6511

Open
njannink wants to merge 2 commits intorel-2.0from
bug/label_pointer
Open

Label: Fix Cursor.Pointer and FileInput.Display property#6511
njannink wants to merge 2 commits intorel-2.0from
bug/label_pointer

Conversation

@njannink
Copy link
Copy Markdown
Collaborator

@njannink njannink commented Apr 6, 2026

Description

Closes #6509

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Checklist:

  • The PR is submitted to the correct branch (master for dev, rel-1.x for maintenance).
  • My code follows the code style of this project.
  • I've added relevant tests.

@njannink njannink requested a review from stsrki April 6, 2026 20:43
Copy link
Copy Markdown
Collaborator

@stsrki stsrki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this to the 2.1 release as it would break the new material and antdesign work anyway, and we need to recreate it there.

if ( !parameters.TryGetValue<UtilityTarget>( nameof( UtilityTarget ), out _ )
&& UtilityTarget == UtilityTarget.Self )
{
UtilityTarget = UtilityTarget.Wrapper;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. We should not assume how each provider will render the component from the core project. That's why we have the UtilityTarget parameter. To have more control.

And then the user can have the option to customize it ONLY IF they need it. This is the last line of defense, so to speak.

<Field Horizontal>
<FieldLabel ColumnSize="ColumnSize.IsFull.OnTablet.Is2.OnDesktop">Custom file label</FieldLabel>
<FieldBody ColumnSize="ColumnSize.IsFull.OnTablet.Is10.OnDesktop">
<Control Role="ControlRole.File" Border="Border.Is1.Rounded.Subtle" Padding="Padding.Is1.OnY.Is2.OnX">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Control component was never meant to be used externally. This is a remnant from the early days of Blazorise that solved some problems(internally) at the time, but it got stuck. So I would remove it from the demo usage.

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.

2 participants