Skip to content
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

switch to fluentui #51

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
353 changes: 281 additions & 72 deletions RoomieReloaded/ClientApp/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion RoomieReloaded/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@fluentui/react": "^8.110.12",
"@types/history": "4.7.2",
"@types/jest": "24.0.15",
"@types/node": "12.6.2",
Expand All @@ -14,7 +15,6 @@
"@uifabric/icons": "^7.9.5",
"history": "^4.9.0",
"moment": "^2.29.4",
"office-ui-fabric-react": "7.105.3",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-redux": "7.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import { Action } from 'redux';
import {MessageBar, MessageBarType, Spinner} from "office-ui-fabric-react";
import {MessageBar, MessageBarType, Spinner} from "@fluentui/react";
import { IRequestState } from "../../actions/actions";

export interface IBootstrapProps extends React.HTMLAttributes<any>, IRequestState {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@

.ms-DatePicker.timeFrameNavigation-button.date
{
width: 35px;
width: 32px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Die Width hat laut Browsertools keine Auswirkung im Dark Mode.
Im Dark Mode ist der Button mit 40px richtig dimensioniert, im Light Mode jedoch greifen die 32px und dann ist der Button schmaler als die anderen (╯°□°)╯︵ ┻━┻

Was mir bisher nie aufgefallen ist: Wenn man rechts vom Kalendericon auf den Div/Button klickt,
dann passiert gar nichts (das ist allerdings nichts neues).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm interessant, ich schau mal genauer, sobald ich wieder Zeit habe...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Das mit der Größe, bzw der Verschiebung des Icons sollte nun behoben sein. Mir ist ehrlich gesagt nicht ganz klar, warum gewisse Styles nur im Darkmode gesetzt sind und wie das bisher überhaupt funktioniert hat aber gut :D

height: 32px;
}

.ms-DatePicker.timeFrameNavigation-button.date .ms-TextField-fieldGroup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as React from 'react';
import { DefaultButton, CommandBarButton } from 'office-ui-fabric-react/lib/Button';
import { Toggle } from 'office-ui-fabric-react/lib/Toggle';
import { Icon } from 'office-ui-fabric-react/lib/Icon';
import { DefaultButton, CommandBarButton } from '@fluentui/react/lib/Button';
import { Toggle } from '@fluentui/react/lib/Toggle';
import { Icon } from '@fluentui/react/lib/Icon';
import './navigation.css';
import { DatePicker, DayOfWeek } from 'office-ui-fabric-react/lib/DatePicker';
import { DatePicker } from '@fluentui/react/lib/DatePicker';
import { DayOfWeek } from '@fluentui/react';
import moment from 'moment';
import { CalendarType } from '../../reducers/calendarReducer';
import { VoidCreator, AnyValueCreator } from '../../actions/actions';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import * as React from 'react';
import {
TooltipHost,
ITooltipProps,
getId,
DirectionalHint
} from 'office-ui-fabric-react';
import { FontIcon } from "office-ui-fabric-react/lib/Icon";
import { IPoint } from 'office-ui-fabric-react/lib/utilities/positioning';
} from '@fluentui/react';
import { ITooltipProps } from '@fluentui/react/lib/Tooltip';
import { FontIcon } from "@fluentui/react/lib/Icon";
import {
IRenderablePlannerItem,
} from '../planner';
Expand Down Expand Up @@ -162,7 +161,7 @@ class PlannerItemComponent extends React.Component<IPlannerItemComponentProps, I
return item.id !== "";
}

private getTooltipPosition = (verticalAlign:'top'|'bottom') : IPoint | undefined =>
private getTooltipPosition = (verticalAlign:'top'|'bottom') : { x: number; y: number } | undefined =>
{
const {
widthFactor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IItemRenderer, ItemRenderer} from './renderer/itemRenderer';
import {isDateTimeInRange, isItemTouchingRangeStrict} from '../utility/dateRangeHelper';
import {isWeekend} from '../../../utility/dateTimeHelper';
import {IPlannerItemParentData} from './item/PlannerItemComponent';
import {Icon, Spinner} from 'office-ui-fabric-react';
import {Icon, Spinner} from '@fluentui/react';
import {PlannerLane} from './item/PlannerLaneComponent';
import moment from 'moment';

Expand Down
2 changes: 1 addition & 1 deletion RoomieReloaded/ClientApp/src/components/toast/toast.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MessageBar, MessageBarType } from 'office-ui-fabric-react';
import { MessageBar, MessageBarType } from '@fluentui/react';
import React from 'react';
import './toast.css'

Expand Down