Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
a113dcd
Added className to Calendar root (see #4514)
lafe Apr 16, 2018
7df10cd
Added Change Request File
lafe Apr 16, 2018
526f93d
Applying package updates.
Apr 16, 2018
68d99e2
Adding scss temp files to the clean script to avoid surprises when sy…
dzearing Apr 16, 2018
5131956
Changed single line comment to multi line comment
lafe Apr 16, 2018
5ab4612
Fix for onMenuClick firing on every keyDown (#4557)
Markionium Apr 16, 2018
98c5903
Applying package updates.
Apr 16, 2018
68acb9b
mergeStyles: asynchronously reset the next style element being used (…
dzearing Apr 17, 2018
08644fa
Changed double quotes to single quotes
lafe Apr 17, 2018
cc4d585
Missed one double quotation
lafe Apr 17, 2018
3c5e9c9
Fixing build. (#4579)
dzearing Apr 17, 2018
8829b1f
Website: Make titles on GetStarted page clickable (#4570)
lynamemi Apr 17, 2018
5867a69
Disable bundlesize in Travis workflow to unblock PRs.
dzearing Apr 17, 2018
4dc9071
Fix improper imports from index files (#4585)
ThomasMichon Apr 17, 2018
7ed1f9d
Mark Panel content as scrollable (#4577)
ThomasMichon Apr 17, 2018
b6c7ac2
Applying package updates.
Apr 17, 2018
4efff92
Docs: Convert document Overviews and Best Practices to markdown (#4512)
jordandrako Apr 17, 2018
7dabb13
Experiments: fix bad imports (#4580)
Vitalius1 Apr 17, 2018
9e838b8
Invoke CommandBar's onItemClick vs item onClick when item has an href…
KevinTCoughlin Apr 17, 2018
e176966
Applying package updates.
Apr 18, 2018
9cc47f5
ContextualMenu: Update mousemove behavior (#4589)
jspurlin Apr 18, 2018
1b45279
ProgressIndicator: convert to mergeStyles - part 1 (#4592)
jordandrako Apr 18, 2018
c49c51c
Applying package updates.
Apr 18, 2018
7c592e9
Choicegroup: Improved states for focus, HC focus, HC hover (#4572)
lynamemi Apr 18, 2018
5f6ae67
Searchbox: Clicking in front of input text puts cursor at the start o…
lynamemi Apr 18, 2018
7d06629
ActivityItem: add pulsing beacon animation (#4553)
lynamemi Apr 18, 2018
9686b87
Fixes invalid aria-owns/ activedescendant attributes on BasePicker (#…
rfballantyne Apr 18, 2018
dfc9c2c
Fix more index imports (#4604)
ThomasMichon Apr 18, 2018
9a47213
Reenable bundlesize in yaml (#4590)
erichdev Apr 18, 2018
5610079
Applying package updates.
Apr 19, 2018
775e1f5
Add optional overflowIndex prop to Breadcrumb (#4609)
samuelmtimbo Apr 19, 2018
5954ea4
Remove unused variables and enable no-unused-variable (#4608)
Markionium Apr 19, 2018
6c70a9e
Fix minor typos (#4607)
cliffkoh Apr 19, 2018
88c0a7c
Update Breadcrumb.base.tsx
dzearing Apr 19, 2018
e77a31b
Update createRef to match the new React 16.3 api (#4598)
Markionium Apr 19, 2018
c86fc5b
Remove usage of Number.NaN (#4615)
christiango Apr 19, 2018
02b098f
ComboBox: Add any event as additional parameter to onChanged callback…
chang47 Apr 19, 2018
88a6620
Applying package updates.
Apr 19, 2018
bd2e7b1
[TextField] Implemented masking (#3783)
lambertwang Apr 19, 2018
b6c5fde
DetailsRow: Flexshrink fix (#4622)
dzearing Apr 19, 2018
ef0cfe4
Revert unintended changes in Dropdown from #4512 (#4625)
jordandrako Apr 20, 2018
365de61
Remove tslint ignore of React (#4614)
Markionium Apr 20, 2018
f2dc9cb
Addressing Issue #4349 - Data attributes on Pivot Item (#4461)
oengusmacinog-zz Apr 20, 2018
ffd046e
Addressing Issue #3634 - Accessibility: Panel should have aria-labell…
oengusmacinog-zz Apr 20, 2018
5cab1cf
add onRenderDescription to TextField (#4588)
chrismohr Apr 20, 2018
9c95e9b
Typedef tslint rule fixes (ready to merge) (#4573)
Markionium Apr 20, 2018
0496c5f
Applying package updates.
Apr 20, 2018
1c60fae
Propagate onRenderInitials correctly from Persona to PersonaCoin (#4…
ivdijan Apr 20, 2018
bcfcbd3
Addressing Issue #4454 - Readonly rating control with null rating sho…
oengusmacinog-zz Apr 20, 2018
65c2b22
Added changefile for inputmask utility change (#4641)
lambertwang Apr 20, 2018
5ee5b00
CalloutExample: Fix basic callout example so it correctly positions. …
joschect Apr 20, 2018
d8c8e6f
ContexualMenuItem: Add onRenderIcon prop to allow override icon rende…
yiminwu Apr 20, 2018
703efd3
Shimmer: adding new props. (#4596)
Vitalius1 Apr 20, 2018
602a5b9
Add selected item add/delete callback, expose item methods (#4636)
amyngu Apr 20, 2018
54ae9f9
Applying package updates.
Apr 20, 2018
0a91cdc
Route ARIA label for 'remove suggestion' button (#4543)
ThomasMichon Apr 20, 2018
15ac345
Fix a typo in NewComponent.md (#4633)
cliffkoh Apr 21, 2018
edf4590
Fix tslint issues in experiment - make it consistent with the product…
cliffkoh Apr 21, 2018
af62e60
focusTrapZone stealing focus on close when focus wasn't inside of it …
lorejoh12 Apr 21, 2018
cf2fcbc
Fix index import for CommandBar (#4645)
ThomasMichon Apr 21, 2018
2bbc795
Removing the ms-Fabric classname from being added to body (#4628)
dzearing Apr 22, 2018
57d14eb
ContextualMenu: setting font to theme font (#4646)
dzearing Apr 23, 2018
bf655ce
Jest snapshots: classes in animations should autoexpand. (#4647)
dzearing Apr 23, 2018
6f66dfa
Remove unused iconClassName prop from Nav.types (#4634)
KevinTCoughlin Apr 23, 2018
6909a93
Applying package updates.
Apr 23, 2018
8d297e2
Use the `data-is-scrollable` attribute on the correct ScrollablePane …
elliottsj Apr 23, 2018
707e538
Pivot: convert to mergeStyles - part 1 (#4656)
jordandrako Apr 23, 2018
a15bb06
Remove wordWrap setting. (#4657)
jordandrako Apr 24, 2018
829a526
Jolore/calendar updates (#4643)
lorejoh12 Apr 24, 2018
6648a74
Applying package updates.
Apr 24, 2018
802a2c0
Fix theme slots for DetailsList header colors (#4658)
ThomasMichon Apr 24, 2018
56c4cfb
Fix input type for Tile ARIA label prop (#4668)
ThomasMichon Apr 25, 2018
127d4d9
Addressing Issue #3707 - OverflowSet: Add the ability to set aria-lab…
oengusmacinog-zz Apr 25, 2018
6bfddc1
Fabric component: revert class change and make it backwards compatibl…
dzearing Apr 25, 2018
1d305b5
Merge styles order (#4664)
dzearing Apr 25, 2018
fee79fb
Applying package updates.
Apr 25, 2018
0ee2136
Fix Calendar component PREV/NEXT month, year, and "Go to today" handl…
KevinTCoughlin Apr 25, 2018
a59edf9
Picker/Autofill: fixes several minor bugs. (#4569)
joschect Apr 25, 2018
ea79638
No unused vars part of ts (#4670)
cliffkoh Apr 25, 2018
5e99f2d
Fix props validation for Breadcrumb (#4666)
ThomasMichon Apr 25, 2018
b9f6e84
ProgressIndicator: Finish conversion to mergeStyles (#4595)
jordandrako Apr 25, 2018
48e8681
Added className to Calendar root (see #4514)
lafe Apr 16, 2018
2f38861
Added Change Request File
lafe Apr 16, 2018
d63880d
Changed single line comment to multi line comment
lafe Apr 16, 2018
0bed016
Changed double quotes to single quotes
lafe Apr 17, 2018
a173eba
Missed one double quotation
lafe Apr 17, 2018
e53c5fb
Merge branch 'ClassName' of https://github.com/lafe/office-ui-fabric-…
lafe Apr 26, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Added optional className property to Calendar",
"type": "minor"
}
],
"packageName": "office-ui-fabric-react",
"email": "aur@gmx.de"
}
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ describe('Calendar', () => {
dateRangeType={ DateRangeType.Week }
autoNavigateOnSelection={ true }
onSelectDate={ onSelectDate() }
className="CalendarTestClass"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Travis is failing due to the double quote marks. Change all " to ' for it to pass.

/>) as Calendar;
});

Expand Down Expand Up @@ -246,6 +247,17 @@ describe('Calendar', () => {
expect(lastSelectedDateRange!.length).toEqual(7);
lastSelectedDateRange!.forEach((val, i) => expect(compareDates(val, addDays(firstDate, i))).toEqual(true));
});

it('Verify class name', () => {
const calendarRoot = ReactTestUtils.scryRenderedDOMComponentsWithClass(renderedComponent, 'CalendarTestClass');
expect(calendarRoot).toBeDefined();
expect(calendarRoot.length).toEqual(1);
const root = calendarRoot[0];
expect(root.classList).toBeDefined();
expect(root.classList.length).toEqual(2);
expect(root.classList[0]).toEqual("ms-DatePicker");
expect(root.classList[1]).toEqual("CalendarTestClass");
});
});

describe('render with date boundaries', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ export class Calendar extends BaseComponent<ICalendarProps, ICalendarState> impl

public render() {
const rootClass = 'ms-DatePicker';
const { firstDayOfWeek, dateRangeType, strings, showMonthPickerAsOverlay, autoNavigateOnSelection, showGoToToday, highlightCurrentMonth, navigationIcons, minDate, maxDate } = this.props;
const { firstDayOfWeek, dateRangeType, strings, showMonthPickerAsOverlay, autoNavigateOnSelection, showGoToToday, highlightCurrentMonth, navigationIcons, minDate, maxDate, className } = this.props;
const { selectedDate, navigatedDate, isMonthPickerVisible, isDayPickerVisible } = this.state;
const onHeaderSelect = showMonthPickerAsOverlay ? this._onHeaderSelect : undefined;
const monthPickerOnly = !showMonthPickerAsOverlay && !isDayPickerVisible;
const overlayedWithButton = showMonthPickerAsOverlay && showGoToToday;

return (
<div className={ css(rootClass, styles.root) } role='application'>
<div className={ css(rootClass, styles.root, className) } role='application'>
<div
className={ css(
'ms-DatePicker-picker ms-DatePicker-picker--opened ms-DatePicker-picker--focused',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export interface ICalendarProps extends React.Props<Calendar> {
*/
componentRef?: (component: ICalendar | null) => void;

/** Optional class name to add to the root element. */

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.

/** [](start = 2, length = 3)

Please make the comment to be multi line. Like

/**

  • blah blah blah...
    */

className?: string;

/**
* Callback issued when a date is selected
* @param date - The date the user selected
Expand Down