electron-react-titlebar
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -42,3 +42,3 @@ 'use strict'; | ||
'button', | ||
{ 'aria-label': 'minimize', title: 'Minimize', tabIndex: '-1', className: 'window-control window-minimize', disabled: disableMinimize, | ||
{ 'aria-label': 'minimize', tabIndex: '-1', className: 'window-control window-minimize', disabled: disableMinimize, | ||
onClick: e => currentWindow.minimize() }, | ||
@@ -53,3 +53,3 @@ _react2.default.createElement( | ||
'button', | ||
{ 'aria-label': 'maximize', title: 'Maximize', tabIndex: '-1', className: 'window-control window-maximize', disabled: disableMaximize, | ||
{ 'aria-label': 'maximize', tabIndex: '-1', className: 'window-control window-maximize', disabled: disableMaximize, | ||
onClick: e => currentWindow.isMaximizable() ? currentWindow.isMaximized() ? currentWindow.unmaximize() : currentWindow.maximize() : null }, | ||
@@ -64,3 +64,3 @@ _react2.default.createElement( | ||
'button', | ||
{ 'aria-label': 'close', title: 'Close', tabIndex: '-1', className: 'window-control window-close', | ||
{ 'aria-label': 'close', tabIndex: '-1', className: 'window-control window-close', | ||
onClick: e => currentWindow.close() }, | ||
@@ -67,0 +67,0 @@ _react2.default.createElement( |
{ | ||
"name": "electron-react-titlebar", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "A github desktop style title bar component for electron.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,3 +24,3 @@ import React, { Component } from 'react' | ||
<div className="window-controls"> | ||
<button aria-label="minimize" title="Minimize" tabIndex="-1" className="window-control window-minimize" disabled={disableMinimize} | ||
<button aria-label="minimize" tabIndex="-1" className="window-control window-minimize" disabled={disableMinimize} | ||
onClick={e => currentWindow.minimize()}> | ||
@@ -31,3 +31,3 @@ <svg aria-hidden="true" version="1.1" width="10" height="10"> | ||
</button> | ||
<button aria-label="maximize" title="Maximize" tabIndex="-1" className="window-control window-maximize" disabled={disableMaximize} | ||
<button aria-label="maximize" tabIndex="-1" className="window-control window-maximize" disabled={disableMaximize} | ||
onClick={e => currentWindow.isMaximizable() ? currentWindow.isMaximized() ? currentWindow.unmaximize() : currentWindow.maximize() : null}> | ||
@@ -38,3 +38,3 @@ <svg aria-hidden="true" version="1.1" width="10" height="10"> | ||
</button> | ||
<button aria-label="close" title="Close" tabIndex="-1" className="window-control window-close" | ||
<button aria-label="close" tabIndex="-1" className="window-control window-close" | ||
onClick={e => currentWindow.close()}> | ||
@@ -41,0 +41,0 @@ <svg aria-hidden="true" version="1.1" width="10" height="10"> |
98487