Just migrated from v10 to
SmartClient Version: v12.1p_2021-02-04/PowerEdition Deployment (built 2021-02-04)
Base style on buttons is not working. See my example below. The button renders with no background color. When I hover and click the background colors are correct. Not sure what changed. This worked with v10.
Here is my CSS
Here is my SmartClient Code
SmartClient Version: v12.1p_2021-02-04/PowerEdition Deployment (built 2021-02-04)
Base style on buttons is not working. See my example below. The button renders with no background color. When I hover and click the background colors are correct. Not sure what changed. This worked with v10.
Here is my CSS
Code:
.loginMain { color: white; background-color: #543670; background-image: linear-gradient(to bottom, #543670, #001122); } .loginPanel { padding: 15px; border-radius: 15px; color: black; background-color: white; } .loginForm { font-size: 30px; } .loginButton { padding: 15px; border-radius: 15px; color: white; font-size: 14px; background-color: #EC7211; } .loginButtonOver { padding: 15px; border-radius: 15px; color: white; font-size: 14px; background-color: #FD8322; } .loginButtonDown { padding: 15px; border-radius: 15px; color: white; font-size: 14px; background-color: #DB6100; }
Code:
isc.VLayout.create({ width: '100%', height: '100%', styleName: 'loginMain', membersMargin: 20, members: [ isc.HLayout.create({ width: '100%', height: '100%' }), isc.HLayout.create({ width: '100%', height: '100%', members: [ isc.HLayout.create({ width: '100%', height: '100%' }), isc.VLayout.create({ align: 'center', defaultLayoutAlign: 'center', members: [ isc.Label.create({ contents: "<p><img width=300 src='/images/brand/default/PLATFORM.png'></div>" }), isc.VLayout.create({ width: 350, height: 300, align: 'center', defaultLayoutAlign: 'center', styleName: 'loginPanel', members: [ isc.HLayout.create({ width: '100%', height: '50' }), isc.DynamicForm.create({ titleOrientation: 'top', width: 200, cellPadding: 5, numCols: 1, fields: [ { name: "username", title: "Username", type: "text", required: true, hint: "Username or Email", showHintInField: true, }, { name: "password", title: "Password", required: true, type: "password", }, { name: "link", title: " ", showTitle: false, type: "link", target: "javascript", click: "isc.say('Hello world!')", linkTitle: "Forgot my password" }, ] }), isc.HLayout.create({ width: '100%', height: '30' }), isc.Button.create({ baseStyle: 'loginButton', title: 'Sign In', width: 200, height: 50, click: function() { } }), isc.HLayout.create({ width: '100%', height: '100%' }), ] }), ] }), isc.HLayout.create({ width: '100%', height: '100%' }), ] }), isc.HLayout.create({ width: '100%', height: '100%' }) ], })
Comment