Skip to content

Blazor template first link fills whole horizontal space inside top-row #44133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
Jimmys20 opened this issue Sep 22, 2022 · 3 comments
Closed
1 task done
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. feature-templates

Comments

@Jimmys20
Copy link

Jimmys20 commented Sep 22, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In Blazor templates with authentication enabled the whole top-row is clickable because the first anchor element fills the entire horizontal space.

2sulr

This happens because of this style: https://github.com/dotnet/aspnetcore/blob/main/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/Shared/MainLayout.razor.css#L72

Expected Behavior

Anchor tag should not be clickable outside its text.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@TanayParikh TanayParikh added area-blazor Includes: Blazor, Razor Components feature-templates labels Sep 23, 2022
@mkArtakMSFT mkArtakMSFT added the bug This issue describes a behavior which is not expected - a bug. label Sep 26, 2022
@mkArtakMSFT
Copy link
Member

Thanks for contacting us. We'll consider this as part of #40935, if we get to it earlier. Otherwise, feel free to send us a PR with a fix, and we'll take it earlier.

@mkArtakMSFT mkArtakMSFT added this to the .NET 8 Planning milestone Sep 26, 2022
@ghost
Copy link

ghost commented Sep 26, 2022

Thanks for contacting us.

We're moving this issue to the .NET 8 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@mkArtakMSFT
Copy link
Member

Closing as we plan to update the templates in .NET 8 and this will change too.

@mkArtakMSFT mkArtakMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. feature-templates
Projects
None yet
Development

No branches or pull requests

4 participants
@TanayParikh @Jimmys20 @mkArtakMSFT and others