Skip to content

feat: make MudPdfViewer input variants configurable.#100

Open
getWombats wants to merge 1 commit into
tgothorp:mainfrom
getWombats:feature/input-variants
Open

feat: make MudPdfViewer input variants configurable.#100
getWombats wants to merge 1 commit into
tgothorp:mainfrom
getWombats:feature/input-variants

Conversation

@getWombats

Copy link
Copy Markdown

What this PR is changing:

Adds some new parameters to MudPdfViewer.razor. They allow developers to change the Variant of following input fields:

  • MudNumericField used for the current page input
  • MudTextField used for the search field
  • MudTextField used for the password field when a pdf is protected

Why is this needed?

Previously, the variant was hardcoded, which prevented developers from matching the PDF viewer's styling with the rest of their application's UI design. The default variant "Variant.Filled" looked a bit off in the current page input.

Notes for the Reviewer:

  • The default value is set to global::MudBlazor.Variant.Filled to ensure backwards compatibility / keep the defaults.
  • Used global:: alias to avoid namespace collisions inside the Gotho.BlazorPdf.Mud project.

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