Skip to content

[Calendar] Samples wrap component in an odd bordered container... #1273

Description

@damyanpetev

All calendar samples in Blazor docs wrap the calendar in a odd looking bordered container for some reason:

<div class="container vertical">
    <div style="width: 25rem; border: 1px solid gainsboro;">
        <IgbCalendar />
    </div>
</div>
Image

https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/scheduling/calendar

Unless the sample has some actual layout needs - i.e. not just a single calendar, remove both redundant containers and apply width or max-width to the calendar itself, similar to how Web Components samples apply those - except possibly with a class + CSS rule instead of inline styles:

<IgbCalendar class="calendar" />
.calendar {
  [max-]width: 25rem;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions