Shadow DOM styling from the outside

I did try many methods, including those described here. Since I’m using an external Web Component lib, I don’t have access to modify these components. So, the only solution that worked for me was using JS querySelector, like this: document.querySelector(“the-element.with-shadow-dom”) .shadowRoot.querySelector(“.some-selector”).setAttribute(“style”, “color: black”); Not the best solution, not suitable for large stylings, but does work … Read more

remove red rectangle around combobox

Use this to modify the Validation.ErrorTemplate <ControlTemplate x:Key=”ComboBoxValidationErrorTemplate”> <DockPanel> <Border BorderBrush=”Blue” BorderThickness=”4″> <AdornedElementPlaceholder /> </Border> </DockPanel> </ControlTemplate> And then use it in your ComboBox like <ComboBox Validation.ErrorTemplate=”{StaticResource ComboBoxValidationErrorTemplate}” …> To have no indication of a Validation Error, remove the DockPanel, set Visibility to Collapsed or any other way you like. Almost forgot, probably the easiest … Read more

Jekyll Blog Post: Centering Images

Here is a way to do it via kramdown: {:refdef: style=”text-align: center;”} ![My Image]({{ site.baseimg }}/images/example1.png) {: refdef} This will create another paragraph around the paragraph added by kramdown. Source

Change app background color in React Native

I’ve solved my problem, it was caused by StackNavigator. To solve it , just add some extra options const HomeStack = StackNavigator( { Home: { screen: HomeScreen, }, Item: { screen: ItemScreen, navigationOptions: ({ navigation }) => ({ title: `${navigation.state.params.title}`, }), }, }, ** { headerMode: ‘screen’, cardStyle: { backgroundColor: ‘#FFFFFF’ }, }, ** );

WPF share column width between separate grids

It is possible by using SharedSizeGroup. Also check out IsSharedSizeScope. <GroupBox Grid.IsSharedSizeScope=”True”> <Grid> … <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width=”Auto” SharedSizeGroup=”A” /> <GroupBox> <Grid> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition SharedSizeGroup=”A” /> See here for more information.

height vs line-height styling

height is the vertical measurement of the container. line-height is the distance from the top of the first line of text to the top of the second. If used with only one line of text I’d expect them to produce similar results in most cases. I use height when I want to explicitly set the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)