Skip to content

Commit 6466c23

Browse files
committed
add cursor pointer on title link
1 parent c3318f9 commit 6466c23

File tree

8 files changed

+34
-46
lines changed

8 files changed

+34
-46
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Installing this component is very easy and it has just one dependency: [React](h
2424
$ bower install --save react-simpletabs
2525
```
2626

27-
- Or if you want to [download the lastest release](https://github.com/pedronauck/react-simpletabs/archive/v0.6.1.zip) and put in your website, it will work too!
27+
- Or if you want to [download the lastest release](https://github.com/pedronauck/react-simpletabs/archive/v0.7.0.zip) and put in your website, it will work too!
2828

2929
**NOTICE:** You need just one thing to make the component work. Put the [base component style](./dist/react-simpletabs.css) at the `<header>` tag. If you don't wanna use the `.css` extension, you can get the `.styl` or `.scss` extension at the folder `./lib`.
3030

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-simpletabs",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"homepage": "https://github.com/pedronauck/react-simpletabs",
55
"authors": [
66
"Pedro Nauck <pedronauck@gmail.com> (https://github.com/pedronauck)"

dist/react-simpletabs.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
*
33
* React Simpletabs - Just a simple tabs component built with React
4-
* @version v0.6.1
4+
* @version v0.7.0
55
* @link https://github.com/pedronauck/react-simpletabs
66
* @license MIT
77
* @author Pedro Nauck (https://github.com/pedronauck)
@@ -20,6 +20,7 @@
2020
}
2121

2222
.tabs-menu-item a {
23+
cursor: pointer;
2324
display: block;
2425
color: #A9A9A9;
2526
}

dist/react-simpletabs.js

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
*
2+
*
33
* React Simpletabs - Just a simple tabs component built with React
4-
* @version v0.6.1
4+
* @version v0.7.0
55
* @link https://github.com/pedronauck/react-simpletabs
66
* @license MIT
77
* @author Pedro Nauck (https://github.com/pedronauck)
8-
*
8+
*
99
*/
1010
(function webpackUniversalModuleDefinition(root, factory) {
1111
if(typeof exports === 'object' && typeof module === 'object')
@@ -20,41 +20,41 @@
2020
return /******/ (function(modules) { // webpackBootstrap
2121
/******/ // The module cache
2222
/******/ var installedModules = {};
23-
23+
/******/
2424
/******/ // The require function
2525
/******/ function __webpack_require__(moduleId) {
26-
26+
/******/
2727
/******/ // Check if module is in cache
2828
/******/ if(installedModules[moduleId])
2929
/******/ return installedModules[moduleId].exports;
30-
30+
/******/
3131
/******/ // Create a new module (and put it into the cache)
3232
/******/ var module = installedModules[moduleId] = {
3333
/******/ exports: {},
3434
/******/ id: moduleId,
3535
/******/ loaded: false
3636
/******/ };
37-
37+
/******/
3838
/******/ // Execute the module function
3939
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
40-
40+
/******/
4141
/******/ // Flag the module as loaded
4242
/******/ module.loaded = true;
43-
43+
/******/
4444
/******/ // Return the exports of the module
4545
/******/ return module.exports;
4646
/******/ }
47-
48-
47+
/******/
48+
/******/
4949
/******/ // expose the modules object (__webpack_modules__)
5050
/******/ __webpack_require__.m = modules;
51-
51+
/******/
5252
/******/ // expose the module cache
5353
/******/ __webpack_require__.c = installedModules;
54-
54+
/******/
5555
/******/ // __webpack_public_path__
5656
/******/ __webpack_require__.p = "";
57-
57+
/******/
5858
/******/ // Load entry module and return exports
5959
/******/ return __webpack_require__(0);
6060
/******/ })
@@ -114,8 +114,8 @@ return /******/ (function(modules) { // webpackBootstrap
114114
render:function () {
115115
var className = classNames('tabs', this.props.className);
116116
return (
117-
React.createElement("div", {className: className},
118-
this._getMenuItems(),
117+
React.createElement("div", {className: className},
118+
this._getMenuItems(),
119119
this._getSelectedPanel()
120120
)
121121
);
@@ -160,16 +160,16 @@ return /******/ (function(modules) { // webpackBootstrap
160160
);
161161

162162
return (
163-
React.createElement("li", {ref: ref, key: index, className: classes},
164-
React.createElement("a", {onClick: this.setActive.bind(this, index + 1)},
163+
React.createElement("li", {ref: ref, key: index, className: classes},
164+
React.createElement("a", {onClick: this.setActive.bind(this, index + 1)},
165165
title
166166
)
167167
)
168168
);
169169
}.bind(this));
170170

171171
return (
172-
React.createElement("nav", {className: "tabs-navigation"},
172+
React.createElement("nav", {className: "tabs-navigation"},
173173
React.createElement("ul", {className: "tabs-menu"}, $menuItems)
174174
)
175175
);
@@ -179,7 +179,7 @@ return /******/ (function(modules) { // webpackBootstrap
179179
var $panel = this.props.children[index];
180180

181181
return (
182-
React.createElement("article", {ref: "tab-panel", className: "tab-panel"},
182+
React.createElement("article", {ref: "tab-panel", className: "tab-panel"},
183183
$panel
184184
)
185185
);
@@ -205,21 +205,15 @@ return /******/ (function(modules) { // webpackBootstrap
205205

206206
/***/ },
207207
/* 1 */
208-
/***/ function(module, exports) {
208+
/***/ function(module, exports, __webpack_require__) {
209209

210210
module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
211211

212212
/***/ },
213213
/* 2 */
214214
/***/ function(module, exports, __webpack_require__) {
215215

216-
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/** @jsx React.DOM *//*!
217-
Copyright (c) 2015 Jed Watson.
218-
Licensed under the MIT License (MIT), see
219-
http://jedwatson.github.io/classnames
220-
*/
221-
222-
function classNames() {
216+
/** @jsx React.DOM */function classNames() {
223217
var classes = '';
224218
var arg;
225219

@@ -245,26 +239,18 @@ return /******/ (function(modules) { // webpackBootstrap
245239
return classes.substr(1);
246240
}
247241

248-
// safely export classNames for node / browserify
242+
// safely export classNames in case the script is included directly on a page
249243
if (typeof module !== 'undefined' && module.exports) {
250244
module.exports = classNames;
251245
}
252246

253-
// safely export classNames for RequireJS
254-
if (true) {
255-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {
256-
return classNames;
257-
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
258-
}
259-
260247

261248
/***/ },
262249
/* 3 */
263-
/***/ function(module, exports) {
250+
/***/ function(module, exports, __webpack_require__) {
264251

265252
// removed by extract-text-webpack-plugin
266253

267254
/***/ }
268255
/******/ ])
269256
});
270-
;

dist/react-simpletabs.min.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*!
22
*
33
* React Simpletabs - Just a simple tabs component built with React
4-
* @version v0.6.1
4+
* @version v0.7.0
55
* @link https://github.com/pedronauck/react-simpletabs
66
* @license MIT
77
* @author Pedro Nauck (https://github.com/pedronauck)
88
*
99
*/
10-
.tabs-menu{display:table;list-style:none;padding:0;margin:0}.tabs-menu-item{float:left;margin-right:20px}.tabs-menu-item a{display:block;color:#A9A9A9}.tabs-menu-item:not(.is-active) a:hover,.tabs-menu-item.is-active a{color:#3498DB}.tab-panel{padding:10px 50px}
10+
.tabs-menu{display:table;list-style:none;padding:0;margin:0}.tabs-menu-item{float:left;margin-right:20px}.tabs-menu-item a{cursor:pointer;display:block;color:#A9A9A9}.tabs-menu-item:not(.is-active) a:hover,.tabs-menu-item.is-active a{color:#3498DB}.tab-panel{padding:10px 50px}

dist/react-simpletabs.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-simpletabs.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
}
1212

1313
.tabs-menu-item a {
14+
cursor: pointer;
1415
display: block;
1516
color: #A9A9A9;
1617
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-simpletabs",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "Just a simple tabs component built with React",
55
"author": {
66
"name": "Pedro Nauck",

0 commit comments

Comments
 (0)