semantic-ui

Semantic UI sidebar throws console errors with ReactJS when render app to body

你说的曾经没有我的故事 提交于 2019-12-07 02:28:51
问题 Any way to render Semantic-UI sidebar into a React App without using id tags in HTML body? I want to avoid having to render React components to tagis within the HTML body like NOT using: <div id="some-name"></div> . I'm using Meteor but shouldn't make a difference for this issue appears React & Semantic UI specific. The code below gives the following errors in browser console: Sidebar: Had to add pusher element. For optimal performance make sure body content is inside a pusherSidebar: Had to

React + Semantic-UI: Using Forms inside UI MODAL

会有一股神秘感。 提交于 2019-12-06 23:57:38
问题 In the plain old Semantic-UI WITHOUT React, I have been able to put a form inside a Modal without a problem at all. With the Semantic-UI + React version, I am able to display the form inside the modal, but it doesn't work the way I would expect it to. For example, after the modal shows and the form inside the modal also is displayed. If I start inputting in the input field, I would get this error displayed: Error: Invariant Violation: findComponentRoot(..., .1.1.1.0.4.0.0.1): Unable to find

Semantic UI floats

元气小坏坏 提交于 2019-12-06 05:08:04
问题 Semantic UI newbie here, I couldn't find anywhere in the docs how (if it's possible) to float a simple element without having it to be something else (like a button or a segment). For instance, I have at the bottom of a page a step navigation/counter that is written like so: <div class="row three column"> <div class="column"> <br> <p class="ui left floated compact basic segment stepper">Step 2 of 3</p> <a class="ui right floated compact basic segment stepper">Go back</a> </div> </div> Beside

Webpack 2 issues with Semantic UI

孤街浪徒 提交于 2019-12-06 04:36:45
Been struggling to get semantic-ui setup using Webpack 2. I a few errors relating to the fonts in the default semantic-ui theme and another error regarding image-webpack-loader : ERROR in ./~/css-loader?{"lessPlugins":[{"options":{"paths":{"../../theme.config":"/Users/djthomps/Desktop/demo/theme.config"}}}]}!./~/less-loader!./semantic/src/semantic.less Module not found: Error: Can't resolve './themes/themes/default/assets/fonts/icons.eot' in '/Users/djthomps/Desktop/demo/semantic/src' @ ./~/css-loader?{"lessPlugins":[{"options":{"paths":{"../../theme.config":"/Users/djthomps/Desktop/demo/theme

Semantic UI onSuccess callback called even when form validation fails

偶尔善良 提交于 2019-12-06 04:21:56
When submitting a form, the onSuccess callback is still called even then the validation fails. Why is it being called when the form is not valid? Example here: https://jsfiddle.net/tL5xx6m9/7/ Snippet: Verbose explanation to satisfy code/text ratio for submission: In this snippet I have text that gets written when the onSuccess event is called. By clicking submit you will see that the form is not valid, and that the onSuccess text gets written. Under that text is the bool for whether the form is valid or not by calling $(".ui.form").form('is valid') . $(".ui.form").form({ onSuccess: function

semantic-ui modal stretching window height

自闭症网瘾萝莉.ら 提交于 2019-12-06 03:57:24
I see on this page: http://semantic-ui.com/modules/modal.html#/examples That to avoid this you can simple add the 'long' class to the modal. I did this but it still is stretching the window height. Does anyone have any ideas why this would be, or how I can debug this behavior? I want to be able to scroll my modal, without having it stretch the window height. this is possible http://jsfiddle.net/MrLogical/2hda8e18/ $('.modal-btn').click(function(){ $('.modal-content').show(); }); $('.modal-btn-close').click(function(){ $('.modal-content').hide(); }); .modal-btn{color:red; cursor:pointer;}

How to add Semantic-UI to Phoenix

偶尔善良 提交于 2019-12-06 03:27:21
How do I add Semantic-UI to Phoenix? Semantic-UI is installed in a folder and updated using NPM, and the actual CSS and Javascript files are built using GULP. Where should the full install folder be placed? Can it be automatically updated through Mix like the rest of the dependencies? Should the generated css and javascript be placed in project/web/static/css (or /js) or /vendor? How do set up Gulp/Sematic-UI configuration to automatically put the files in the right places? Again, can Mix run Gulp/Semantic-UI build automatically? Where should the full install folder be placed? Actually, you

semantic-ui hide element for mobile view

混江龙づ霸主 提交于 2019-12-06 02:30:16
问题 I am looking for semantic-ui the correct class to hide for example a DIV in mobile view. In Bootstrap its easy there we have "visible-xs" and "hidden-xs". But on semantic ui I only found "mobile only grid" 回答1: Please visit here just add to your override css file /* Mobile */ @media only screen and (max-width: 767px) { [class*="mobile hidden"], [class*="tablet only"]:not(.mobile), [class*="computer only"]:not(.mobile), [class*="large monitor only"]:not(.mobile), [class*="widescreen monitor

With React Semantic UI use NavLink to set active page class?

走远了吗. 提交于 2019-12-06 01:40:00
问题 Im using Semantic UI React and React Router. The NavLink componenet from React Router knows then its the active page link and can set an active class: <NavLink to="/" exact activeClassName="active">Home</NavLink> However this doesn't work with Semantic UI React: <Menu.Item header as={NavLink} to="./" children="Diplomat" activeClassName="active" /> I can see in the browser that the aria-current property is being set to true correctly. So NavLink does 'know' when its active but I cant pass this

Angular 2 + Semantic UI , component encapsulation breaks style

血红的双手。 提交于 2019-12-05 21:58:37
问题 I'm using Angular2 with Semantic UI as a css library. I have this piece of code: <div class="ui three stakable cards"> <a class="ui card"> ... </a> <a class="ui card"> ... </a> <a class="ui card"> ... </a> </div> the cards are rendered nicely with a space between and such. like this: refer to cards section in the link since the cards represent some kind of view I thought of making a component out of it, so now the code is: <div class="ui three stakable cards"> <my-card-component></my-card