Skip to content

Commit

Permalink
chore: fix typos detected by cspell (#3265)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Jan 6, 2022
1 parent 4edf0af commit aca423b
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/crud/src/vaadin-crud.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ declare class Crud<Item> extends ElementMixin(ThemableMixin(HTMLElement)) {
readonly size: number | null | undefined;

/**
* Controls visiblity state of toolbar.
* Controls visibility state of toolbar.
* When set to false toolbar is hidden and shown when set to true.
* @attr {boolean} no-toolbar
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/src/vaadin-grid-keyboard-navigation-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export const KeyboardNavigationMixin = (superClass) =>

/**
* Returns the target row after navigating by the given dy offset.
* Also returns infromation whether the details cell should be the target on the target row.
* Also returns information whether the details cell should be the target on the target row.
* If the row is not in the viewport, it is first scrolled to.
* @private
**/
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/src/vaadin-grid-selection-column.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class GridSelectionColumn extends GridColumn {
}

/**
* iOS needs indeterminated + checked at the same time
* iOS needs indeterminate + checked at the same time
* @private
*/
__isChecked(selectAll, indeterminate) {
Expand Down
4 changes: 2 additions & 2 deletions packages/grid/test/scroll-to-index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ describe('scroll to index', () => {
// Issue https://github.com/vaadin/vaadin-grid/issues/2107
it('should display correctly when scrolled to bottom immediately after setting dataProvider', (done) => {
grid.size = 1;
const numberOfChidren = 250;
const numberOfChildren = 250;
grid.itemIdPath = 'name';
const PARENT = { name: 'PARENT', hasChildren: true };
grid.dataProvider = ({ page, parentItem }, cb) => {
Expand All @@ -242,7 +242,7 @@ describe('scroll to index', () => {
[...new Array(grid.pageSize)].map((_, index) => {
return { name: 'Child ' + (offset + index), hasChildren: false };
}),
numberOfChidren
numberOfChildren
);
if (page > 0) {
expect(getPhysicalItems(grid).length).to.be.above(10);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Templatizer extends PolymerElement {
// The Polymer uses `===` to check whether a property is changed and should be re-rendered.
// This means, object properties won't be re-rendered when mutated inside.
// This workaround forces the `item` property to re-render even
// the new item is stricly equal to the old item.
// the new item is strictly equal to the old item.
if (instance.item === properties.item) {
instance._setPendingProperty('item');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-list-mixin/vaadin-list-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export const ListMixin = (superClass) =>
}

focus() {
// In initialisation (e.g vaadin-select) observer might not been run yet.
// In initialization (e.g vaadin-select) observer might not been run yet.
this._observer && this._observer.flush();
const firstItem = this.querySelector('[tabindex="0"]') || (this.items ? this.items[0] : null);
this._focusItem(firstItem);
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-overlay/src/vaadin-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ class OverlayElement extends ThemableMixin(DirMixin(ControllerMixin(PolymerEleme
if (this._placeholder) {
this._exitModalState();

// Use this.restoreFocusNode if specified, othwerwise fallback to the node
// Use this.restoreFocusNode if specified, otherwise fallback to the node
// which was focused before opening the overlay.
const restoreFocusNode = this.restoreFocusNode || this.__restoreFocusNode;

Expand Down
4 changes: 2 additions & 2 deletions packages/vaadin-themable-mixin/test/register-styles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ describe('registerStyles', () => {
.map((sheet) => [...sheet.cssRules])
.flat();

// Check the number of occurences of the style rule
// Check the number of occurrences of the style rule
const occurrences = rules.filter((rule) => rule.cssText === duplicateStyle).length;

// There should be only one occurence
// There should be only one occurrence
expect(occurrences).to.equal(1);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-themable-mixin/vaadin-themable-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function registerStyles(themeFor, styles, options = {}) {
}

/**
* Returns all registered themes. By default the themeRegistry is returend as is.
* Returns all registered themes. By default the themeRegistry is returned as is.
* In case the style-modules adapter is imported, the themes are obtained from there instead
* @returns {Theme[]}
*/
Expand Down

0 comments on commit aca423b

Please sign in to comment.